Syntax error: newline unexpected node.js rpm

linux, node.js

Solution

Use this:

curl -k https://npmjs.org/install.sh | sudo sh

Note: npm included in new versions of node.js. No need to install it separately now.

Problem

I am running node.js on my Linux Debian server and am having problems running a .sh script trying to install RPM. The command is: `curl http://npmjs.org/install.sh | sh` The script is a supported install RPM package. `-bash: sh: Syntax error: newline unexpected` Can anyone help me fix this?

Original source

Related problems