centos安装指定版本Nodejs
- 官方指导
https://github.com/nodesource/distributions - 更新源
curl -sL https://rpm.nodesource.com/setup_13.x | bash -
- yum安装
yum -y install nodejs
node -v
#查看版本
curl -sL https://rpm.nodesource.com/setup_13.x | bash -
yum -y install nodejs
node -v
#查看版本