cli
cli copied to clipboard
ERROR [unhandledRejection] read/write ECONNRESET
Environment
- Operating System: Windows_NT
- Node Version: v20.8.0
- Nuxt Version: 3.7.4
- CLI Version: 3.9.0
- Nitro Version: 2.6.3
- Package Manager: [email protected]
- Builder: -
- User Config: devtools
- Runtime Modules: -
- Build Modules: -
Reproduction
-
npx nuxi@latest init my-app
- select pnpm
- init git
- cd my-app
- pnpm dev
Open http://localhost:3000, refresh the web page quickly or press ctrl + R
continuously.
Describe the bug
ERROR [unhandledRejection] write ECONNABORTED 13:33:13
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at Socket._writeGeneric (node:net:952:11)
at Socket._write (node:net:964:8)
at writeOrBuffer (node:internal/streams/writable:447:12)
at _write (node:internal/streams/writable:389:10)
at Writable.write (node:internal/streams/writable:393:10)
at Socket.ondata (node:internal/streams/readable:817:22)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:376:12)
ERROR [unhandledRejection] read ECONNRESET 13:33:16
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
ERROR [unhandledRejection] read ECONNRESET 13:33:16
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
Additional context
Tried nodejs 18.17.1 18.18.0 18.18.1
Logs
No response
@cdwmhcc did you manage to solve this?
Any response for this issue? I have this issue too with my localhost:3000 and idk why when I switch between some pages this error occurred! and my page will stuck and can`t change it anymore!
WHAT HAPPENED: I installed pnpm using choco
. After installation I used command refreshenv
. After that command I created pnpm
using nuxt project as done above. Then I got same error message.
FIX: I fixed it by closing PowerShell and reopening it. pnpm run dev
did not cause issue after that.
Hope this helps. Happy time hacking 👍