0
SwitzerBaden 4 years ago 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.