yarn/npm certificate has expired

目录

报错

[原因:HTTPS 证书验证失败](#原因:HTTPS 证书验证失败)

方法

[a.检查网络安全软件:可能会拦截或修改 HTTPS 流量](#a.检查网络安全软件:可能会拦截或修改 HTTPS 流量)

b.strict-ssl:false关闭验证【临时方法】


报错

info No lockfile found.

1/4\] Resolving packages... error Error: certificate has expired at TLSSocket.onConnectSecure (node:_tls_wrap:1539:34) at TLSSocket.emit (node:events:513:28) at TLSSocket._finishInit (node:_tls_wrap:953:8) at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12) info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

原因:HTTPS 证书验证失败

方法

**a.检查网络安全软件:**可能会拦截或修改 HTTPS 流量

b.strict-ssl:false关闭验证【临时方法】

yarn config set strict-ssl false

npm config set strict-ssl false

yarn 安装包时报"certificate has expired"_yarn certificate has expired-CSDN博客

相关推荐
林恒smileZAZ1 小时前
Vue<前端页面版本检测>
前端·javascript·vue.js
ulias2123 小时前
Linux系统中的权限问题
linux·运维·服务器
青花瓷4 小时前
Ubuntu下OpenClaw的安装(豆包火山API版)
运维·服务器·ubuntu
问简5 小时前
docker 镜像相关
运维·docker·容器
我是Superman丶5 小时前
Element UI 表格某行突出悬浮效果
前端·javascript·vue.js
Dream of maid5 小时前
Linux(下)
linux·运维·服务器
齐鲁大虾6 小时前
统信系统UOS常用命令集
linux·运维·服务器
Huanzhi_Lin6 小时前
关于V8/MajorGC/MinorGC——性能优化
javascript·性能优化·ts·js·v8·新生代·老生代
Benszen6 小时前
Docker容器化技术实战指南
运维·docker·容器
ZzzZZzzzZZZzzzz…6 小时前
Nginx 平滑升级:从 1.26.3 到 1.28.0,用户无感知
linux·运维·nginx·平滑升级·nginx1.26.3·nginx1.28.0