




















https://github.com/yarnpkg/yarn/issues/9032
出现的错误日志信息:
yarn install v1.22.22
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
error Error: certificate has expired
at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
at TLSSocket.emit (node:events:518:28)
at TLSSocket._finishInit (node:_tls_wrap:1078:8)
at ssl.onhandshakedone (node:_tls_wrap:864:12)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
解决办法三步走:
yarn config set registry "https://registry.npmmirror.com"),https证书是否有效。yarn config set strict-ssl false此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。