修改下载仓库为淘宝镜像
1、npm config set registry https://registry.npm.taobao.org --global
2、npm config set disturl https://npm.taobao.org/dist --global
重置自己原来的镜像
npm config set registry https://registry.npmjs.org/
安装cnpm(不推荐)
npm install -g cnpm --registry=https://registry.npm.taobao.org
查看当前镜像地址
npm config list