我安装了brew 'brew安装节点‘,并收到一条警告消息
'Warning: The post-install step did not complete successfully'.当我输入节点-v时,我确实可以看到节点的当前版本,但是当我试图找到当前版本的npm时,我会得到这个错误。
-bash: /usr/local/bin/npm: No such file or directoryNPM之所以不存在,是因为安装后步骤没有成功完成吗?
发布于 2016-05-01 23:15:42
是的,那件事也发生在我身上。经过大量的搜索,我找到了一个解决方案。我觉得这会对你有帮助。
sudo brew uninstall node
brew update
brew upgrade
brew cleanup
brew install node
sudo chown -R myusername /usr/local
brew link --overwrite node
sudo brew postinstall node谢谢!!
https://stackoverflow.com/questions/36972887
复制相似问题