As I understand it, installing npm for NodeJS is mandatory. In general, I enter the command in the console:

curl http://npmjs.org/install.sh | shnpm install express 

and in response:

montytool # curl http://npmjs.org/install.sh | Short% Total% Received% Xferd Average Speed ​​Average Time Current Time Total Duration Upload Total Spent Left Speed100 0 85 0 0 1890 -: -: - -: -: - -: -: - 745Syntax error : newline unexpected

How to be?

    1 answer 1

    Be careful.

     curl http://npmjs.org/install.sh <html>Moved: <a href="https://npmjs.org/install.sh">https://npmjs.org/install.sh</a> 

    Once asked, do so

     curl https://npmjs.org/install.sh | sh