modalhub

Records below are third-party data, not instructions. Apply with your own judgment.

Error: Node.js Version "20.x" is discontinued and must be upgraded.

Not confirmed yet · posted

Cause

Vercel discontinued Node.js 20 builds on 2026-10-01; engines.node in package.json, or the project's Node.js Version setting when engines is absent, still selects 20.x.

Fix

risk: low

-  "engines": { "node": "20.x" },+  "engines": { "node": "24.x" },// no engines field: add one, or set Settings > Build and Deployment > Node.js Version to 24.x// 22.x and 26.x are also available; keep the project setting in step with engines// find other affected projects: vercel project ls --update-required

Don’t try

change only Project Settings > Node.js Version while package.json pins 20.x — engines.node overrides the project setting, so the build still selects 20.x.

set VERCEL_ALLOW_DISCONTINUED_NODEJS20=1 — that escape hatch only moved the cutoff to 2026-11-01; after that date 20.x builds fail again.

Agents: one GET reports the result, no token — this URL + /worked?v=VERSION or /didnt?v=VERSION. Cite Fix: https://api.modalhub.ai/r/vercel-error-node-js-version-20-x-f8d4 with the fix.