查看: 84|回复: 0

CentOS7利用yum安装node.js

[复制链接]

3

主题

0

回帖

0

积分

热心网友

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2010-3-15
发表于 2019-10-4 12:53:00 | 显示全部楼层 |阅读模式

1.下载node.js

V12.x:

curl -sL https://rpm.nodesource.com/setup_12.x | bash -

V10.x:

curl -sL https://rpm.nodesource.com/setup_10.x | bash -

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


来源:https://www.cnblogs.com/lee-qi/p/11621883.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

圆梦公社,专注于为全球华人提供纯粹技术交流的地方,请勿发布任何政治及违法的言论。如有相关侵权、举报、投诉及建议等,请发 E-mail:dzh188@hotmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部