- 获取nodejs 资源
curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -
- 安装nodejs
yum install -y nodejs
- 安装淘宝镜像cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
- 查看安装版本
node -v npm -v cnpm -v
curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -
yum install -y nodejs
npm install -g cnpm --registry=https://registry.npm.taobao.org
node -v npm -v cnpm -v
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。