文章正文

npm reason: certificate has expired证书过期

【文档】2020-04-23

简介npm reason: certificate has expired证书过期

问题:

设置淘宝镜像时报错:npm ERR! request to https://registry.npm.taobao.org/concurrently failed, reason: certificate has expired

解决:

1、重新设置镜像地址

npm config set registry https://registry.npmmirror.com 
其它镜像地址:
npm 官方原始镜像网址是:https://registry.npmjs.org/
淘宝最新 NPM 镜像:https://registry.npmmirror.com
阿里云 NPM 镜像:https://npm.aliyun.com
腾讯云 NPM 镜像:https://mirrors.cloud.tencent.com/npm/
华为云 NPM 镜像:https://mirrors.huaweicloud.com/repository/npm/
网易 NPM 镜像:https://mirrors.163.com/npm/
中科院大学开源镜像站:http://mirrors.ustc.edu.cn/
清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/

2、如果执行后依旧报错,请依次执行以下命令

npm cache clean --force
npm config set strict-ssl false

3、测试

npm install

打赏支持

感谢您的支持,加油!

打开微信扫码打赏,你说多少就多少

找书费时,联系客服快速获取!

扫码支持

在线客服8:30-22:30,若离线请留言!

获取教程,请联系在线客服!

扫码支持

在线客服8:30-22:30,若离线请留言!

热门阅读

找PDF电子书,太费时间?

  • 微信扫描二维码,让客服快速查找。
  • 在线客服8:30-22:00,若离线请留言!