CentOS 7 通过 yum 安装 nodejs 和 npm
工具/原料
CentOS 7
方法/步骤
1
获取nodejs 资源# 4.xcurl --silent --location https://rpm.nodesource.com/setup_4.x | bash -# 5.xcurl --silent --location https://rpm.nodesource.com/setup_5.x | bash -# 0.10curl --silent --location https://rpm.nodesource.com/setup | bash -我这里安装的是 v4.x
2
安装yum install -y nodejs
3
测试是否安装成功node -v # v4.4.0npm -v# 2.14.20
注意事项
只支持64-bit
上一篇:冰糖炖蹄髈制作的攻略
下一篇:如何提高自己的酒量?