【问题标题】:read ECONNRESET at TLSWrap.onStreamRead (node:internal/stream_base_commons:211:20)在 TLSWrap.onStreamRead (node:internal/stream_base_commons:211:20) 读取 ECONNRESET
【发布时间】:2022-11-11 03:44:47
【问题描述】:

当我尝试运行我的下一个 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 %```

【问题讨论】:

    标签: node.js next.js


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      当我使用 vpn 或没有 vpn 时,我遇到了同样的错误。

      使用另一个 vpn 解决了这个问题。

      【讨论】:

        猜你喜欢
        • 2022-01-04
        • 1970-01-01
        • 2021-01-02
        • 2018-09-11
        • 2017-09-03
        • 1970-01-01
        • 1970-01-01
        • 2022-01-02
        • 1970-01-01
        相关资源
        最近更新 更多