欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

使用 npm i 安装管理依赖关系时遇到的问题

最编程 2024-03-29 20:50:54
...

提示:

npm ERR! code CERT_HAS_EXPIRED

npm ERR! errno CERT_HAS_EXPIRED

npm ERR! request to https://registry.npm.taobao.org/string-width failed, reason: certificate has expired

c195e202402231121523737.png

切换淘宝源到http或者更换其他国内镜像

npm config set registry http://registry.npm.taobao.org

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

推荐阅读