报错提示:
提示淘宝镜像过期
ERR_PNPM_META_FETCH_FAIL GET https://registry.npm.taobao.org/needle: request to https://registry.npm.taobao.org/needle failed, reason: certificate has expired
解决方案:
1、查看当前的npm镜像设置:npm config list

2、清空缓存:npm cache clean --force

3、然后修改镜像即可:npm config set registry https://registry.npmjs.org/ (或npm config delete registry)
4、再次运行: npm config list,查看 registry 已经被更改为默认的 npm 公共镜像地址。
本文介绍了如何处理在使用npm时遇到的淘宝镜像过期错误,包括检查npm配置、清除缓存并重置为默认npmregistry的过程。
1万+

被折叠的 条评论
为什么被折叠?



