码迷,mamicode.com
首页 > Web开发 > 详细

CentOS 无法通过 yum 安装新版 nodejs 解决办法(安装的还是老版的)

时间:2018-09-23 16:23:12      阅读:306      评论:0      收藏:0      [点我收藏+]

标签:解决办法   down   nload   pack   ack   manager   get   node   cat   

官网安装说明:CentOS 安装 nodejs

 

第一步:

curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -

第二步:

sudo yum -y install nodejs

 

如果以上步骤不能安装 最新版 node,执行以下命令后再执行第二步:

sudo yum clean all

 

如果存在多个 nodesoucre,执行以下命令删除,然后重新执行第一第二步:

sudo rm -fv /etc/yum.repos.d/nodesource*

 

CentOS 无法通过 yum 安装新版 nodejs 解决办法(安装的还是老版的)

标签:解决办法   down   nload   pack   ack   manager   get   node   cat   

原文地址:https://www.cnblogs.com/savokiss/p/9692684.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!