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
git clone https://github.com/isaacs/npm.git cd npm sudo make install
And if you don't have git, do this first: sudo yum install git
sudo yum install git