npm"https://registry.npm.taobao.org/axios: certificate has expired"问题解决

vue 项目,install 报错:

"https://registry.npm.taobao.org/axios: certificate has expired"

解决:


修改镜像源:

sudo npm config set registry https://registry.npmmirror.com



其他镜像源:参考

npm 官方原始镜像网址是: https: //registry.npmjs.org/

淘宝最新 NPM 镜像: https: //registry.npmmirror.com

阿里云 NPM 镜像: https: //npm.aliyun.com

腾讯云 NPM 镜像: https: //mirrors.cloud.tencent.com/npm/

华为云 NPM 镜像: https: //mirrors.huaweicloud.com/repository/npm/

网易 NPM 镜像: https: //mirrors.163.com/npm/

中科院大学开源镜像站: http: //mirrors.ustc.edu.cn/

清华大学开源镜像站: https: //mirrors.tuna.tsinghua.edu.cn/

腾讯,华为,阿里的镜像站基本上比较全 ————————————————


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容