我尝试在Mac OSX Yosemite上使用命令安装npm
:
curl https://www.npmjs.org/install.sh | sh
我收到了以下信息:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 51 100 51 0 0 296 0 --:--:-- --:--:-- --:--:-- 298
sh: line 1: Moved: command not found
有关如何解决这个问题的任何建议?
| sh
,运行curl https://www.npmjs.org/install.sh
将更加清楚明白。 - Charles Duffy