当我运行brew安装节点时,npm不会构建

时间:2014-10-22 21:52:43

标签: node.js path npm install homebrew

运行brew安装节点时,我无法获得npm构建。这是节点安装的结束我正在......

==> /usr/local/bin/npm install --global npm@latest --prefix /usr/local
--global
npm@latest
--prefix
/usr/local

Warning: The post-install step did not complete successfully
You can try again using `brew postinstall node`
==> Summary
 /usr/local/Cellar/node/0.10.32: 1678 files, 19M

运行brew postinstall节点时没有做任何事情。

非常感谢您的帮助!

1 个答案:

答案 0 :(得分:2)

您可以尝试以下方法:

$ brew uninstall node
$ rm -r ~/.npm
$ brew install node