Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing NPM on AWS EC2

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.

Have any idea what is going on here?

like image 617
dade Avatar asked Nov 20 '11 22:11

dade


1 Answers

sudo yum install nodejs npm --enablerepo=epel 
like image 194
Ted Avatar answered Sep 19 '22 16:09

Ted