An unexpected error occurred: “https://registry.npm.taobao.org/ certificate has expired
certificate has expired”,意味着淘宝镜像源的证书已过期。这可能是由于淘宝镜像源的配置问题导致的。清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/过程中: idealTree:view: sill idealTree buildDeps。中科院大学开源镜像站:http://mirrors.ustc.edu.cn/将淘宝镜像源改为默
最新淘宝镜像
npm config set registry https://registry.npmmirror.com
问题
npm
过程中: idealTree:view: sill idealTree buildDeps
错误信息:
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/antd/download/antd-3.20.1.tgz failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Local\npm-cache_logs\2024-02-06T02_41_17_712Z-debug-0.log
yarn
错误信息:
error An unexpected error occurred: “https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.0.tgz?cache=0&sync_timestamp=1560950873670&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.0.tgz: certificate has expired”.
问题分析
淘宝镜像源于2024/1/22过期
“certificate has expired”,意味着淘宝镜像源的证书已过期。这可能是由于淘宝镜像源的配置问题导致的
解决方法
将淘宝镜像源改为默认源
npm config set registry https://registry.npmjs.org/
yarn config set registry https://registry.yarnpkg.com
改变镜像源后仍然错误
删除yarn.lock文件重新yarn
新镜像源推荐
清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/
中科院大学开源镜像站:http://mirrors.ustc.edu.cn/
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)