npm报错:request to https://registry.npm.taobao.org/tdesign-miniprogram failed, reason: certificate has expired
npm淘宝镜像已经从registry.npm.taobao.org
切换到了registry.npmmirror.com
,registry.npm.taobao.org
也将于2022年5月31日停止服务,所以npm报证书过期。
老项目记得先删掉package-lock.json
bashnpm config list
bashnpm cache clean --force
bashnpm config set registry https://registry.npmjs.org/
或
npm config delete registry
国内推荐使用淘宝镜像
bashnpm config set registry https://registry.npmmirror.com
bashnpm config list
查看registry
已经被更改为新设置的npm镜像地址,之后即可正常使用npm。
本文作者:哈希喵
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!