小编Jam*_*ley的帖子

被拒绝覆盖或删除节点目标的权限

我一直遇到一个问题,每次我试图运行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)

npm osx-yosemite

3
推荐指数
1
解决办法
2602
查看次数

标签 统计

npm ×1

osx-yosemite ×1