目录
报错
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博客
原文地址:https://blog.csdn.net/qq_28838891/article/details/135918713
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_66467.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!