RHEL/CentOS/Scientific Linux 6
Node.js and npm are available from the Fedora Extra Packages for Enterprise Linux (EPEL) repository. If you haven't already done so, firstenable EPEL.
To check if you have EPEL, run
yum repolist
if you don't see epel, download it (At the time of this writing, the last version is 6.8.)
curl -O http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
then install it
sudo rpm -ivh epel-release-6-8.noarch.rpm
And then run the following command to install node and npm:
sudo yum install npm --enablerepo=epel
Node.js在 redahat 企业版(Red Hat Enterprise Linux Server release 6.3 (Santiago))上的安装