Skip to content

ECONNRESET crash when using Netlify CLI with Node.js 24.x and Nuxt 4.x dev server #7747

@ElijahJunaid

Description

@ElijahJunaid

Describe the bug

Netlify CLI consistently crashes with Error: read ECONNRESET when attempting to proxy to a Nuxt 4.x development server on Node.js 24.6.0. The crash occurs immediately after the Nuxt dev server successfully starts and builds. The error is unhandled and terminates the Netlify CLI process.

Error Output:

Error: Netlify CLI has terminated unexpectedly
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)

This appears to be a socket handling incompatibility between Netlify CLI and Node.js 24.x.

Steps to reproduce

  1. Install Node.js 24.6.0
  2. Create a fresh Nuxt 4.x project
npx nuxi@latest init test-project --packageManager npm --no-gitInit
cd test-project`
3. Create netlify.toml:
`[dev]
  framework = "nuxt"
  port = 8888
  targetPort = 3000
  autoLaunch = false
  1. Run Netlify Dev
  2. Wait for it to complete then load localhost:8888

Configuration

netlify.toml:

[dev]
  framework = "nuxt"
  port = 8888
  targetPort = 3000
  autoLaunch = false

package.json:

{
  "name": "nuxt-app",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "dependencies": {
    "nuxt": "^4.2.0",
    "vue": "latest"
  }
}

nuxt.config.ts:

export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true }
})

Environment

System:
OS: Windows 11 10.0.26200
CPU: (12) x64 AMD Ryzen 5 7600X 6-Core Processor
Memory: 13.65 GB / 31.14 GB
Binaries:
Node: 24.6.0 - C:\Program Files\nodejs\node.EXE
npm: 11.5.1 - C:\Program Files\nodejs\npm.CMD

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions