尝试安装NPM时收到此错误.非常感谢任何有关此错误的帮助.
$ curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 85 0 85 0 0 2226 0 --:--:-- --:--:-- --:--:-- 4473
sh: line 1: syntax error near unexpected token `newline'
sh: line 1: `<html>Moved: <a href="https://npmjs.org/install.sh">https://npmjs.org/install.sh</a>'
Run Code Online (Sandbox Code Playgroud)
从http:// ... - > https://更改了命令,但仍然没有运气.
其他信息:
操作系统:Mac OSX 10.8.2
CURL:curl 7.24.0(x86_64-apple-darwin12.0)
所以我尝试以超级用户身份安装,并迅速遇到了这一堆文本.我完全迷失在这里.
$ sudo curl https://npmjs.org/install.sh | sh
Password:
#!/bin/sh
# A word about this shell script:
#
# …Run Code Online (Sandbox Code Playgroud)