I think I have installed npm.. But when I try to type npm -v
,it shows
我想我已经安装了npm ..但是当我尝试输入npm -v时,它会显示出来
-bash: /usr/local/bin/npm: No such file or directory
How to fix that.. node -v
works fine... The terminal shows
如何修复..节点-v工作正常...终端显示
v0.12.4
Can anyone help me ...
谁能帮我 ...
1 个解决方案
#1
2
I have fixed that problem by reinstall node and npm. For mac user, try to type
我通过重新安装节点和npm解决了这个问题。对于mac用户,请尝试键入
sudo curl -L npmjs.org/install.sh | sudo sh
Hope it works.
希望它有效。
#1
2
I have fixed that problem by reinstall node and npm. For mac user, try to type
我通过重新安装节点和npm解决了这个问题。对于mac用户,请尝试键入
sudo curl -L npmjs.org/install.sh | sudo sh
Hope it works.
希望它有效。