Syntax error: new line unexpected node.js rpm

I am running node.js on my Debian Linux server and I am having problems running a .sh script trying to install RPM.

Team:
curl http://npmjs.org/install.sh | sh

script is a supported installation RPM package.

-bash: sh: Syntax error: newline unexpected

Can someone help me fix this?

+5
source share
2 answers

Use this:

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

Note: npm is included in new versions of node.js. Now there is no need to install it separately.

+18
source

Try:

curl -O https://www.npmjs.org/install.sh
sudo sh install.sh

Inspired by this .

+1
source

All Articles