Last active
March 17, 2021 02:58
-
-
Save nghuuphuoc/7398312 to your computer and use it in GitHub Desktop.
Install npm, nodejs on Centos 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
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