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同样有这样的问题
解决方法:
①禁用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