-
run shell
`NodeJS 12.x
curl -sL https://rpm.nodesource.com/setup_12.x | bash -NodeJS 11.x
curl -sL https://rpm.nodesource.com/setup_11.x | bash -NodeJS 10.x
curl -sL https://rpm.nodesource.com/setup_10.x | bash -NodeJS 8.x
curl -sL https://rpm.nodesource.com/setup_8.x | bash -NodeJS 6.x
curl -sL https://rpm.nodesource.com/setup_6.x | bash -
` -
sudo yum install -y nodejs
$ node -v
v10.15.3
博客提供了在CentOS系统下安装不同版本Node.js的方法。通过访问指定的GitHub链接,运行相应的shell命令,如安装NodeJS 12.x可使用“curl -sL https://rpm.nodesource.com/setup_12.x | bash -”,还给出了11.x、10.x、8.x、6.x等版本的安装命令。
1374

被折叠的 条评论
为什么被折叠?



