npm居然装不了?求解
我使用curl http://npmjs.org/install.sh | sudo sh装npm,却失败了。
[root@localhost /]# curl http://npmjs.org/install.sh | sudo sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 193 100 193 0 0 68 0 0:00:02 0:00:02 --:–:-- 68
sh: line 1: html: No such file or directory
sh: line 2: syntax error near unexpected token <' 'h: line 2:
<head><title>301 Moved Permanently</title></head>
3 回复