yarn/npm certificate has expired

目录

报错

原因: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/npm certificate has expired_第1张图片

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

你可能感兴趣的:(bug,服务器,javascript,运维)