npm报错:request to https://registry.npm.taobao.org failed, reason certificate has expired

NPM使用遇到错误:

错误原因:淘宝镜像过期

解决方案:

​ 1.查看当前npm设置: npm config list

​ 2.清空缓存:npm cache clean --force

​ 3.修改npm为淘宝镜像:npm config set registry https://registry.npmmirror.com

​ 4.再次查看npm设置,已经修改为淘宝镜像

)

​ 问题解决!!!

posted @ 2024-03-07 11:08  无_痕  阅读(2930)  评论(0)    收藏  举报