Node.js version 22.5 is broken

Today I started seeing build issues with my Static Site, specifically:

/bin/sh: 1: react-scripts: not found

and then when I tried working around that with npx react-scripts:

npm error could not determine executable to run

Turns out the new default Node version, 22.5.0, has a bug: Node 22.5.0 started to crash and hangs on different cases · Issue #53902 · nodejs/node · GitHub

I was able to fix this by setting NODE_VERSION to 22.4.1 in my project’s environment variables. Posting here in hopes the Render team will roll back to 22.4.1 until the issue with 22.5.0 is patched.

Hi there,

Render will use the version of NodeJS you specify: https://docs.render.com/node-version. If you don’t specify a version, our default is 20.15.1. How we detected the NodeJS version should be listed in your build logs.

Regards,

Keith
Render Support, UTC+10 :australia:

Got it. I was confused because I hadn’t made any configuration changes and yet my app suddenly stopped building on Render. Turns out I had this in my package.json, so as soon as Node 22.5 became available on Render, the bug affected my build.

"engines": {
    "node": ">=16.15.1"
  },

Anyway, a fixed version 22.5.1 is out and available on Render, so this issue can be closed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.