Resolve Vercel deploy Error: Found invalid Node.js Version: “>=20.9.0”.

If you’re deploying an application on Vercel and encounter the following error:

Error: Found invalid Node.js Version: ">=20.9.0". Please set "engines": { "node": "18.x" } in your package.json file to use Node.js 18.

There’s no need to downgrade your application to Node.js 18. Here’s how you can fix the issue without downgrading:

  1. Navigate to Settings.
  2. Scroll down to the Node.JS Version section. From the dropdown list, select 2.0x.
  3. Click Save.
  4. Return to the failed deployment and click on Redeploy.

Your new deployment should successfully launch this time.