为什么我的项目中不会使用更新的NodeJS版本?

我想在我的React Native项目中使用最新版本的NodeJS ,但是我NodeJS了一些错误。 即使遵循指示,我也看不出所有这些情况。 我怎么去解决这个问题?

在运行brew install node我得到这个错误:

 Warning: node 8.2.1 is already installed, it's just not linked. You can use `brew link node` to link this version. 

公平。 所以现在我跑了brew link node就像这样说,我得到这个错误:

 Error: Could not symlink bin/node Target /usr/local/bin/node already exists. You may want to remove it: rm '/usr/local/bin/node' To force the link and overwrite all conflicting files: brew link --overwrite node To list all files that would be deleted: brew link --overwrite --dry-run node 

再次公平。 所以我跑brew link --overwrite node ,我得到这个错误:

 Linking /usr/local/Cellar/node/8.2.1... Error: Could not symlink share/doc/node/gdbinit /usr/local/share/doc/node is not writable.