1.打开cmd,查看当前镜像地址:
npm get registry
2.切换为淘宝镜像:
npm config set registry http://registry.npm.taobao.org/
3.切换为原本的npm镜像:
npm config set registry https://registry.npmjs.org/