Skip to content

Instantly share code, notes, and snippets.

@nghuuphuoc
Last active March 17, 2021 02:58
  • Star 7 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nghuuphuoc/7398312 to your computer and use it in GitHub Desktop.
Install npm, nodejs on Centos 6
# Enable Fedora Extra Packages for Enterprise Linux (EPEL) repos
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Install npm from the epel repos
$ sudo yum install npm --enablerepo=epel
@stevekessler
Copy link

When you tried this did you get errors about conflicts between nodejs and NPM? For example:

file /usr/lib/node_modules/npm/bin/node-gyp-bin/node-gyp conflicts between attempted installs of nodejs-2:6.13.1-1nodesource.x86_64 and npm-1.3.6-5.el6.noarch

How did you solve them?

Thank you!

-Steve

@JonesSmithNew
Copy link

Thank you very much! I followed your instruction and it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment