美文网首页
centos7用yum安装node.js

centos7用yum安装node.js

作者: FreeMeABC | 来源:发表于2019-06-09 23:49 被阅读0次

更新node.js各版本yum源

Node.js v8.x安装命令

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

Node.js v7.x安装命令

#curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -

Node.js v6.x安装命令

#curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -

Node.js v5.x安装命令

#curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -

yum安装node.js

yum install -y nodejs

查看node.js版本

# node -v

node.js版本管理器n

安装n

npm install -g n

版本管理

安装指定版本

#n <version>

安装最新版本

# n latest

安装稳定版本

#n stable

删除某个版本

#n rm <version>

查看所有版本

#n list

相关文章

网友评论

      本文标题:centos7用yum安装node.js

      本文链接:https://www.haomeiwen.com/subject/izoztctx.html