Linux版本CentOS安装npm
1、安装命令
yum install nodejs
2、查看是否安装成功
npm -v
出现以下版本信息表示安装成功了。

3、安装cnpm
安装cnpm同时指定国内镜像。
npm install -g cnpm --registry=https://registry.npm.taobao.org

4、查看版本
cnpm -v

yum install nodejs
npm -v
出现以下版本信息表示安装成功了。
安装cnpm同时指定国内镜像。
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm -v