# 更新系统
sudo yum -y update
# 安装
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum clean all && sudo yum makecache fast
sudo yum install -y gcc-c++ make
sudo yum install -y nodejs
# 验证
node -v
# 更新系统
sudo yum -y update
# 安装
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum clean all && sudo yum makecache fast
sudo yum install -y gcc-c++ make
sudo yum install -y nodejs
# 验证
node -v
本文标题:Centos7命令行安装新版Node
本文链接:https://www.haomeiwen.com/subject/waiuzhtx.html
网友评论