淘宝镜像https证书过期处理办法

2024-03-28 17:26:02

问题详情:

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

处理办法:

1. npm cache clean --force    //强制清除缓存
2. npm config set registry https://registry.npmmirror.com    //设置新的源地址
3. npm config get registry    //查看新的源地址是否设置成功
4. npm insatll    //安装所需工具