npm替换成cnpm(淘宝镜像)
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/
来源:CSDN
作者:缘_妙不可言
链接:https://blog.csdn.net/joy1793/article/details/80574940