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

时间:2017-08-02 14:42:38

标签: node.js terminal

我想在NodeJS项目中使用最新版本的React Native,但我遇到了一些错误。即使我按照说明操作,我也看不出这一切是怎么回事。我该如何解决这个问题?

运行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.

0 个答案:

没有答案