Vercel build failed: "Node.js Version 20.x is discontinued" (and the silent jump to Node 26)
Your app deployed fine for months. Today a redeploy on Vercel stops in the first seconds of the build with this:
Error: Node.js Version "20.x" is discontinued and must be upgraded. Please set "engines": { "node": "26.x" } in your `package.json` file to use Node.js 26.
Or, if the version comes from your dashboard instead of your code:
Error: Node.js Version "20.x" is discontinued and must be upgraded. Please set Node.js Version to 26.x in your Project Settings to use Node.js 26.
Nothing in your app changed. Vercel stopped building Node.js 20 on October 1, 2026. This guide shows where the 20 comes from in apps exported from v0, Bolt, Lovable or built in Cursor, how to pick a new version safely, and one change from October 29 that can move your app to Node 26 without asking.
What changed, with dates
- April 30, 2026: Node.js 20 reached end of life. Vercel's changelog gives this as the reason for the deprecation.
- June 30, 2026: Supabase dropped Node.js 20 support in every package from the supabase-js monorepo (
@supabase/supabase-js,auth-js,realtime-js,functions-js,storage-js,postgrest-js) and asks for Node.js 22 or later. - October 1, 2026: Vercel deprecated Node.js 20 for builds and Functions. It is no longer selectable in Project Settings, and projects still set to 20 get an error when a new deployment is created.
- October 21, 2026: Node.js shipped security releases for 22.x, 24.x and 26.x only, including a high-severity Brotli decoder flaw that can lead to remote code execution (CVE-2026-111497). The advisory notes that end-of-life versions are always affected when a security release happens, so Node 20 gets no fix.
- October 29, 2026: Node.js 26 became generally available on Vercel and is now the default for new projects.
Vercel currently offers 26.x (default), 24.x and 22.x. Only the major version can be chosen; Vercel rolls out minor and patch updates itself.
Your live site is not down
Vercel's changelog is explicit: existing deployments are not affected, and already-deployed functions keep working. Only new deployments fail. So the site your users see is still the last good build. Don't panic-roll back or delete anything. The only real problem is that you can't ship a change (or a fix) until the version is updated.
Step 1: find where the 20 comes from
Vercel reads the Node.js version from two places, and package.json wins:
"engines": { "node": ... }inpackage.json. If it's set, it overrides Project Settings. The first error message above (the one that mentionspackage.json) means this is your source.- Settings → Build and Deployment → Node.js Version in the Vercel dashboard. Used only when
package.jsonhas noengines.node. The second error message (the one that mentions Project Settings) points here.
Search the repo for every pin, not just package.json. Other files don't change what Vercel builds with, but they decide what your laptop and CI use, and a mismatch is how "works locally, fails on Vercel" starts:
grep -rn --include=package.json '"node"' . | grep -v node_modules cat .nvmrc .node-version 2>/dev/null grep -rn "node-version" .github/workflows 2>/dev/null
In a monorepo, check the package.json in the folder set as the Vercel Root Directory as well as the repo root.
To list every affected project on your account at once, Vercel suggests:
npm i -g vercel@latest vercel project ls --update-required
Step 2: what your engines value actually resolves to
We ran the exact resolver Vercel uses in builds (@vercel/build-utils 15.2.1, the current npm release) against common values. This is what it returned:
engines.node | Result on Vercel today |
|---|---|
20.x, ^20.0.0 | Build fails: Node.js 20.x is discontinued |
18.x | Build fails: Node.js 18.x is discontinued |
>=18, >=20 | Builds on 26.x (the newest major) |
20 || 22 | Builds on 22.x |
>=22 <25 | Builds on 24.x |
22.x, ^22 | Builds on 22.x |
If engines.node and Project Settings disagree, the build log shows a warning like this, and the package.json value is the one used:
Warning: Due to "engines": { "node": ">=20" } in your `package.json` file, the Node.js Version defined in your Project Settings ("24.x") will not apply, Node.js Version "26.x" will be used instead.
The trap: ">=20" now means Node 26
An open range such as >=18 or >=20 never hits the error above, and that is exactly the risk. Vercel's October 29 changelog says that if your engines.node allows 26, such as >=20, your builds use Node.js 26 on the next deployment. The build log warns about it: Detected "engines": { "node": ">=20" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released.
Most apps are fine on 26. Two things to know if something starts misbehaving right after an unrelated redeploy:
- On Node.js 26, built-in
fetchuses HTTP/2 by default (Undici 8) when the server supports it. If calls to an API or database from your Vercel Functions start failing, Vercel documents an opt-out: set the environment variableVERCEL_FETCH_DISABLE_H2to1and redeploy. - If you deploy prebuilt output from your own CI, Vercel says you need Vercel CLI 65.8.0 or later to deploy Node.js 26 Functions.
Our advice: replace open ranges with an explicit major (24.x or 26.x), so a future default change can't upgrade you in the middle of an unrelated fix.
Step 3: pick a version and change it
Vercel's own upgrade prompt targets 24, and the error hint suggests 26 because it's the newest. Both are supported. If you just need to ship today, 24.x is the smaller jump from 20. Go to 22.x only if a dependency you rely on doesn't support 24 yet; it's the oldest major Vercel still offers.
// package.json
{
"engines": {
"node": "24.x"
}
}
Then line everything else up so local, CI and Vercel run the same major:
echo "24" > .nvmrc
# .github/workflows/*.yml
- uses: actions/setup-node@v4
with: { node-version: "24", cache: npm }
Reinstall with the new Node locally (nvm install 24, then npm ci) and run npm run build before pushing. If your project has no engines.node, you can instead change Settings → Build and Deployment → Node.js Version in the dashboard and redeploy. Keeping it in package.json is better: it lives in git, and every tool can see it.
Using an AI agent (v0, Bolt, Lovable, Cursor)
This is a good job to hand to the agent, as long as the prompt is narrow. Vercel publishes a prompt for exactly this; here is a version scoped so the agent doesn't "upgrade everything":
Upgrade this project from Node.js 20 to Node.js 24 for Vercel.
1. In package.json set "engines": { "node": "24.x" }. Do not change any other
dependency versions unless the build fails because of Node 24.
2. Update Node pins in .nvmrc, .node-version and .github/workflows to 24.
3. Run npm ci and npm run build. If something fails, show me the error and
the smallest fix before changing anything.
4. Do not touch environment variables, Supabase keys, or vercel.json.
Review the diff before you merge it. The change should be a handful of lines. If the agent also bumped Next.js or React to a new major, undo that part; that is a separate upgrade with its own breaking changes.
Step 4: confirm the running version
Vercel documents two checks. For the build, add node -v in front of the Build Command for one deploy (for example node -v && npm run build) and read the log. For Functions, log process.version inside a route handler or API route, open it once, and check the runtime logs. The exact minor version can differ between build and function runtime; only the major matters.
"I can't upgrade yet"
Some apps have a native dependency or old library that really won't run past 20. Vercel's fallback is to deploy the app as a container: add a Dockerfile.vercel at the project root (their example starts FROM node:20-alpine) and Vercel builds and deploys the image on every commit. Treat this as a short bridge, not a fix. You then manage the Node.js version and its security patches yourself, and Node 20 no longer gets security patches from the Node.js project at all, including the October 21 fixes.
Also note: @vercel/build-utils 15.2.1 contains a temporary override that let Node 20 build until November 1, 2026. That date has passed, so it no longer helps.
The 60-second triage
- Error mentions
package.json? Changeengines.nodeto24.x(or26.x), commit, push. - Error mentions Project Settings and there's no
engines.node? Pick 24.x or 26.x in Settings → Build and Deployment → Node.js Version and redeploy, or addenginesas above. - No error, but the app broke right after a redeploy and
engines.nodeis an open range like>=20? You're probably on Node 26 now. Pin24.xto test that theory, then checkfetchcalls (see the HTTP/2 note). - Build now gets further and fails on something else? That's progress. Read the first error line, not the last; it may be a dependency that behaves differently on the newer Node version.
FAQ
Why does Vercel say Node.js Version "20.x" is discontinued?
Node.js 20 reached end of life on April 30, 2026, and Vercel stopped supporting it for builds and Functions on October 1, 2026. Any new deployment that resolves to Node 20, from package.json engines or Project Settings, now fails with this error.
Is my live site down because of the Node.js 20 deprecation?
No. Vercel says existing deployments and already-deployed functions keep working. Only new deployments fail, so you can't ship changes until you set Node 22, 24 or 26.
I changed Project Settings to 24.x but the build still uses or rejects another version. Why?
The engines.node field in package.json overrides Project Settings. If package.json says 20.x, the build still fails; if it says >=20, the build uses Node 26. Change the value in package.json, or remove it if you want the dashboard setting to apply.
Which Node.js version should I choose on Vercel now?
Vercel currently offers 26.x (the default), 24.x and 22.x. 24.x is the smaller jump from 20 and is what Vercel's own upgrade prompt targets. Use an exact major like 24.x instead of an open range such as >=20, which now resolves to 26.
Does Supabase still work on Node.js 20?
Supabase ended Node.js 20 support for supabase-js and its sub-packages on June 30, 2026 and asks for Node.js 22 or later. Older installed versions may still run, but future releases are not guaranteed to work on 20.