centos用 yum 方式安装 nodejs 和 npm

centos用 yum 方式安装 nodejs 和 npm 要通过 yum 来安装 nodejs 和 npm 需要先给 yum 添加 epel 源, 添加方法在 centos 添加epel和remi源 中 安装完成后,执行

  注:centos 添加 epel 和 remi 源 添加 epel 源 64位:

32位:

导入 key:

添加 remi 源

  问题解决: yum 安装完node版本是6.17.1,通过npm install –registry=https://registry.npm.taobao.org 安装时会报以下错误: fetchMetadata: Read more…