首页 > Web开发 > 详细

centOS --- 安装最新版的node nodejs

时间:2019-04-22 13:11:20      阅读:98      评论:0      收藏:0      [点我收藏+]

对于 RHEL, CentOS or Fedora 系统,Node.js v8 LTS版本命令:

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

而 Node.js 10 的命令:

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

然后安装:

sudo yum -y install nodejs

替换npm为淘宝源码
npm install -g cnpm - -registry=https://registry.npm.taobao.org

centOS --- 安装最新版的node nodejs

原文:https://www.cnblogs.com/mafeng/p/10749092.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!