centos nodejs upgrade

# sudo model
# remove old
cd /etc/yum.repos.d/
rm nodesource-*.repo
yum remove nodejs
# install new
# change setup_8.x to your version
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
yum clean all
yum -y install nodejs

标签: none

添加新评论