本文介绍: 目录报错原因:HTTPS 证书验证失败方法a.检查网络安全软件:可能会拦截或修改 HTTPS 流量b.strict-ssl:false关闭验证【临时方法】yarn 安装包时报“certificate has expired”_yarn certificate has expired-CSDN博客

目录

报错

原因: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.

yarn config set strict-ssl false

npm config set strict-ssl false

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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注