美文网首页
centos 安装 nodejs

centos 安装 nodejs

作者: AlwaysLight | 来源:发表于2019-03-25 15:20 被阅读0次

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

相关文章

网友评论

      本文标题:centos 安装 nodejs

      本文链接:https://www.haomeiwen.com/subject/oytbvqtx.html