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

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

时间:2019-04-22 12:20:27      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:fedora   das   node   bash   setup   silent   nodejs   nod   ash   

对于 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

标签:fedora   das   node   bash   setup   silent   nodejs   nod   ash   

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

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