我一直遇到一个问题,每次我试图运行npm install命令时都会收到错误:'-bash:npm:command not found'所以我试图卸载并重新安装节点和npm使用自制软件,但仍然遇到一些错误.在我卸载了两个之后,我运行了命令:"brew doctor",我得到"你的系统已准备好酿造".
首先我尝试安装节点:"brew install node",但我得到以下内容:
==> Downloading https://homebrew.bintray.com/bottles/node-
0.12.7.yosemite.bottle
Already downloaded: /Library/Caches/Homebrew/node-0.12.7.yosemite.bottle.tar.gz
==> Pouring node-0.12.7.yosemite.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/systemtap/tapset/node.stp
Target /usr/local/share/systemtap/tapset/node.stp
already exists. You may want to remove it:
rm '/usr/local/share/systemtap/tapset/node.stp'
To force the link and overwrite all conflicting files:
brew link --overwrite node
To list all files that would …Run Code Online (Sandbox Code Playgroud)