0

newline unexpected node.js rpm

SwitzerBaden vor 12 Jahren 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.