1, 修改为淘宝镜像
npm config set registry http://registry.npm.taobao.org/
2, 修改为npm官网镜像
npm config set registry https://registry.npmjs.org/
3, 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org/
1, 修改为淘宝镜像
npm config set registry http://registry.npm.taobao.org/
2, 修改为npm官网镜像
npm config set registry https://registry.npmjs.org/
3, 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org/