在通过yarn命令下载依赖时
报以下错:
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 证书验证失败
解决方案:
使用命令yarn config set strict-ssl false将其改为 false 即可。
再次运行安装命令即可顺利安装