系统相关
首页 > 系统相关> > CentOS7利用yum安装node.js

CentOS7利用yum安装node.js

作者:互联网

1.下载node.js

V8.x: 

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

V7.x:

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

V6.x:

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

V5.x:

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

2.yum安装node.js

yum install -y nodejs

3.查看node.js版本

node -v

标签:node,silent,js,CentOS7,location,nodesource,curl,rpm
来源: https://www.cnblogs.com/lee-qi/p/11621883.html