WebStrom 报错:error Error: certificate has expired at TLSSocket.onConnectSecure (node:_tls_wrap:15

作者 : admin 本文共498个字,预计阅读时间需要2分钟 发布时间: 2024-06-8 共6人阅读

报错情况:

WebStrom 报错:error Error: certificate has expired at TLSSocket.onConnectSecure (node:_tls_wrap:15插图

[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 http://yarnpkg.com/en/docs/cli/install for documentation about this command.

 StackOver同样有这样的问题WebStrom 报错:error Error: certificate has expired at TLSSocket.onConnectSecure (node:_tls_wrap:15插图(1)

解决方法:

①禁用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

本站无任何商业行为
个人在线分享 » WebStrom 报错:error Error: certificate has expired at TLSSocket.onConnectSecure (node:_tls_wrap:15
E-->