npm源替换成cnpm源(淘宝镜像)
1.得到原本的镜像地址
npm get registry
输出 https://registry.npmjs.org/
设成淘宝的
npm config set registry http://registry.npm.taobao.org/
or
npm config set registry https://r.npm.taobao.org/
两个地址都可以
2.换成原来的
npm config set registry https://registry.npmjs.org/