0 votes
1 view
in AWS by (8.9k points)

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 install it:

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

But the install seems to freeze... I get "fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz" at the prompt and it stays on like this.

Any suggestions on how to install npm successfully would be appreciated.

1 Answer

0 votes
by (18.5k points)

Use the following command to install npm:

sudo yum install nodejs npm --enablerepo=epel

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...