查看自己使用的使什么镜像 在命令行中输入 npm config get registry 通过命令配置 //旧淘宝镜像 npm config set registry https://registry.npm.taobao.org/ //新淘宝镜像 npm config set registry https://registry.npmmirror.com 总结 最后在使用 npm config get registry 查询是否更改为淘宝镜像