Syntax error: newline unexpected node.js rpm
(2013-12-16 10:49:37)
标签:
npmit |
分类: linux |
curl http://npmjs.org/install.sh | sh 时提示:
-bash: sh: Syntax error: newline unexpected
解决办法:
curl -k https://npmjs.org/install.sh | sudo sh
安装nodejs
-
sudo
apt-get install python-software-properties -
sudo
add-apt-repository ppa:chris-lea/node.js -
sudo
apt-get update -
sudo
apt-get install nodejs