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/
over
原文:https://www.cnblogs.com/rainbowLover/p/13132486.html