`
wajmy
  • 浏览: 6959 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

npm 安装报错 Error: The 'brew link' step did not complete successfully

 
阅读更多
Step 1: Update Homebrew

$ brew update
Step 2: Remove node/npm everywhere on your system

Some of these commands are not necessary depending on how you installed node/npm in the past.

$ brew uninstall npm
$ brew uninstall node
$ npm uninstall npm -g
$ sudo rm -rf /usr/local/lib/node_modules
Note: I had stray node files that I found by running brew -v link node (which gave me the verbose output of the linking errors brew was complaining about). You may need to:

$ sudo rm -rf /usr/local/include/node
$ sudo rm -rf /usr/local/lib/node
Step 3: Open a new terminal and install node

$ brew install node
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics