当前位置:
首页 >
行业知识 >
WebStrom 报错:error Error: certificate has expired at TLSSocket.onConnectSecure (node:
行业知识
WebStrom 报错:error Error: certificate has expired at TLSSocket.onConnectSecure (node:
2026-11-10 01:20:52
来源:互联网转载
报错情况:
[2/4] Fetching 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.
StackOver同样有这样的问题
解决方法:
①禁用SSL证书验证
yarn config set strict-ssl false
②重新设置npm镜像源(二选一)
npm config set registry http://registry.cnpmjs.org npm config set registry http://registry.npm.taobao.org
上一篇:宝塔面板预警怎么关闭?
下一篇:平板电脑怎么停服务器设置?