1、添加 epel 源
64位 rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
32位rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
2、导入 key
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
3、添加 remi 源
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
4、安装完成后,执行
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
sudo yum install gcc-c++ make
yum -y install nodejs
网友评论