Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (12.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 | sh

But the install seems to freeze... I get "fetching:" 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.2k points)

Use the following command to install npm:

sudo yum install nodejs npm --enablerepo=epel

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories