The DEV build command is causing thousands of Node.js instances to open on my computer.

I have a fresh Next.JS application on my computer. When I attempt to run npm run dev, literally THOUSANDS of Node.js JavaScript Runtime instances open on my computer, causing it to crash. Attached is one screenshot I got as it was happening.

My current software versions:

=> Next.JS - 16.2.6

=> Node.JS - 24.16.0

=> npm - 11.15.0

I have 32 GB of ram which get sucked up instantly in the chaos. Is there something I’m doing wrong or are other people experiencing this?

Just my luck! :joy: I was troubleshooting this for over 2 hours then I post this message for assistance. I decide to try one more thing before heading to bed and it fixed it for me.

What fixed it for me.

  1. Clear cache:
    npm cache clean --force
  2. Reinstall Dependencies:
    npm install
  3. Restart the server:
    npm run dev

What DID NOT fix it for me.

  • Deleting node_modules folder and package-lock.json folders manually then running npm install
  • Reinstalling npn or Node.js.
  • Updaing Node.js, npm, or Next.js (they were all up-to-date before I ran my first command.
  • Adding the following to %APPDATA%/Roaming/Code/User/settings.json
    {
        "eslint.runtime": "node"
    }