npm的镜像和淘宝互换
1.得到原本的镜像地址
npm get registry
> https://registry.npmjs.org/
设成淘宝的
npm config set registry http://registry.npm.taobao.org/
2.换成原来的
npm config set registry https://registry.npmjs.org/
3、npm set registry http://npm.wxxxxz-inc.com(拉取本地私有仓库的文件)
4、npm run pull:config -- env=daily
最后安装cnpm(可选)
npm install cnpm -g --registry=https://registry.npm.taobao.org