多语言展示
当前在线:1937今日阅读:195今日分享:41

CentOS 7 通过 yum 安装 nodejs 和 npm

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

推荐信息