美文网首页
Centos安装NodeJS

Centos安装NodeJS

作者: 野生DBNull | 来源:发表于2020-11-20 17:09 被阅读0次

1.设置包源

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

如果你要安装14.x以上版本直接将 12.x修改为14.x就好了,同理安装8.x就修改为8.x

2.安装

yum install nodejs -y

3.验证

node -v

相关文章

网友评论

      本文标题:Centos安装NodeJS

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