Vercel Wants Older Node Version Which I Have

So I got this error during build:

10:20:54.542

Error: Unsupported Node.js version: v22.14.0. Please use Node 18 or Node 20 to build your project, or explicitly specify a runtime in your adapter configuration.

SO I changed NVM to be to node 20 specifically v20.19.0 but I still get this error and I am really stuck so any advice and suggestions would be appreciated. I tried adding this to the

package.json "  "engines": {
    "node": "20.19.0"
  }
}"

From Error: Found invalid Node.js Version: "18.x" - #8 by mikenikles. But really i’m lost i’m new to NPM web dev and all this stuff so please keep that in mind. Thats all stay safe

Sveletekit

Changing the node version in Vercel fixed it for me.

3 Likes

Thanks @eckhardt-rnsonlineco for jumping in :handshake:

We don’t recommend putting exact Node versions, instead using a fixed Major version from the documentation shared about is a good approach.

2 Likes

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