0

newline unexpected node.js rpm

SwitzerBaden 12 year бұрын 0
I was getting the error:
sh: 2: Syntax error: newline unexpected
when I ran the command:
curl http://npmjs.org/install.sh | sh
and fixed it by instead running the command:
curl -k https://npmjs.org/install.sh | sudo sh
Hope this helps someone.