Centos 7 Can't yum install npm

Chris asked:

I’m trying to get nodejs and npm installed on centos 7

So first I did
rpm -i http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
to get the epel repository

Then I tried yum install nodejs. Which worked.
Then I tried yum install npm. Yum returns with “npm package not found”

Will I have to build npm manually? And how should I do that?

My answer:


NPM isn’t packaged for EPEL 7 yet. Give it some time, they are having to update thousands of packages already and had to wait for the CentOS release which was just a couple of days ago.

I suggest contacting the package maintainer (who appears to be patches) as they may not be aware that CentOS 7 is released and that they can now build their packages for it.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.