Working on Ec2 on AWS.
I have installed Node.js and it works fine.
But the problem arises when trying to install npm.
I am using the following command to
Get the http://npmjs.org/install.sh file on your system first and then execute it directly instead of piping with curl.
http://npmjs.org/install.sh
chmod +x install.sh
./install.sh