next.js 在TLSWrap上读取ECONNRESET,onStreamRead(节点:内部/数据流基本公共点:211:20)

dgtucam1  于 2022-11-23  发布在  其他
关注(0)|答案(2)|浏览(560)

当我尝试运行我的下一个js项目时,我突然遇到了下面的问题。它之前运行得很完美,这在系统没有任何变化的情况下发生。关于这个有什么想法吗

yarn run v1.22.17
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
info  - Using external babel configuration from /Users/subodha/Subodha/lab/rpm-web/.babelrc.js
postcss-resolve-url: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:211:20)
Emitted 'error' event on ClientRequest instance at:
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:390:28)
    at TLSSocket.emit (node:domain:475:12)
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -54,
  code: 'ECONNRESET',
  syscall: 'read'
}

Node.js v17.2.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
subodha@Subodhas-MacBook-Pro rpm-web %```
tf7tbtn2

tf7tbtn21#

我给出了同样的错误。为了解决它们,我禁用了我的VPN连接,并成功地建立了它。所以这个错误应该发生在您的网络连接上。

disho6za

disho6za2#

我得到了同样的错误,当我使用VPN或没有VPN.
使用另一个VPN解决了这个问题。

相关问题