1.查看镜像源:
npm config get registry
2.查看返回信息
https://registry.npm.taobao.org/
3.更换镜像资源
npm config set registry https://registry.npmmirror.com
4.再次查看返回信息
npm config get registry
如果是 https://registry.npmmirror.com/ 就代表成功了
5.最后以后 npm install 一下就行了