Node.js 20 end of life: upgrading to Node.js 24 or 26

Node.js 20 got its last release in March 2026 and reached end of life on 30 April. Here's which version to move to, what breaks on the way, and what your host and framework need.

As of 3 November 2026. Versions and dates are from the Node.js project's and each vendor's own pages, linked at the bottom.

In 30 seconds

  • What happened: Node.js 20 reached end of life on 30 April 2026, so it gets no more security fixes. Hosts are now switching it off: Google Cloud decommissioned it on 30 October 2026, and Vercel stopped new deployments on it on 1 October.
  • Where to go: Node.js 24 (supported until April 2028) or Node.js 26 (the current Active LTS, until April 2029). Node.js 22 works too, but it ends on 30 April 2027.
  • What to expect: most code runs unchanged. The work is in removed APIs, old crypto keys, native add-ons that need a rebuild, and dependencies that need a newer release.

1. Which version to move to

Node.jsStatus todayEnd of life
Node.js 20 (Iron)End of life30 April 2026
Node.js 22 (Jod)Maintenance LTS30 April 2027
Node.js 24 (Krypton)Maintenance LTS30 April 2028
Node.js 25End of life1 June 2026
Node.js 26 (Lithium)Active LTS since 28 October 202630 April 2029
  • Node.js 24 is the safe default: it runs everywhere in section 3, including AWS Lambda in production, and is supported for another year and a half.
  • Node.js 26 gives you the longest runway, but check your host first: on AWS Lambda and Google Cloud its runtime is still a preview.
  • Node.js 22 is the smallest step from 20, but you'd be doing this again within six months. Use it only as a stepping stone.
  • The schedule is changing: "Starting with 27.x, Node.js will move from two major releases per year to one", and every release becomes LTS, so from 27 on there are no more short-lived odd-numbered versions.

2. What breaks on the way

These are the changes from the Node.js project's own migration guides and release notes that most often show up in real applications. The DEP numbers are the codes on the deprecations page.

From 20 to 22

  • Import assertions are gone. import data from './data.json' assert { type: 'json' } must use with instead.
  • crypto.createCipher() and crypto.createDecipher() are removed (DEP0106). The replacement, createCipheriv(), can't decrypt data that was encrypted the old way, so plan how you re-encrypt stored data.
  • The util.is*() functions (DEP0044–DEP0058) warn at runtime in 22 and, apart from util.isArray(), are removed from 23 on. Old dependencies use them a lot.
  • Native add-ons need a rebuild (new NODE_MODULE_VERSION), and the default stream high-water mark went from 16 KiB to 64 KiB.
  • require(esm) works without a flag from 22.12.0 (and 20.19.0): you can require() an ES module, unless it uses top-level await.

From 22 to 24

  • Stricter crypto. Node.js 24 ships OpenSSL 3.5 at security level 2: RSA, DSA and DH keys shorter than 2048 bits and ECC keys shorter than 224 bits are prohibited, and so is any cipher suite using RC4. Old certificates and keys for partner APIs are the usual casualty: test every outgoing connection.
  • url.parse() warns at runtime in your own code (DEP0169); use the WHATWG URL API. SlowBuffer is runtime-deprecated too (DEP0030).
  • Removed: tls.createSecurePair() (DEP0064), dirent.path (use dirent.parentPath, DEP0178), OutgoingMessage.prototype._headers (DEP0066), process.assert() (DEP0100) and calling fs.truncate() with a file descriptor (DEP0081).
  • The test runner now waits for subtests automatically, and npm 11 ships with Node.js 24.
  • Platforms: no more pre-built binaries for 32-bit Windows or 32-bit Linux armv7, and macOS binaries need macOS 13.5 or later. C/C++ add-ons may need updates for V8 13.6.

Going on to 26? Read its release notes for the same kind of list. Anything already runtime-deprecated in 24, like SlowBuffer, is the first candidate for removal.

3. What your host and framework need

Hosting

HostNode.js 20Supported next
AWS LambdaDeprecated 30 April 2026. New functions blocked from 29 July 2027, updates from 31 August 2027.nodejs22.x and nodejs24.x. nodejs26.x is a public preview, not for production (general availability targeted for November 2026).
Google Cloud Run functions / Cloud RunDecommissioned 30 October 2026: no new or updated workloads, and existing ones "may be disabled".nodejs22 (decommissioned 31 October 2027) and nodejs24 (31 October 2028). nodejs26 is in preview.
Azure FunctionsNo longer listed as supported.Node.js 22 and 24. Linux Consumption plan apps stop at 22; Node.js 24 needs the Flex Consumption plan.
VercelDeprecated for builds and functions on 1 October 2026: a new deployment on 20 shows an error. Already deployed functions keep working.22.x, 24.x and 26.x (the default).
NetlifyNew sites get Node.js 24 by default; existing sites keep the version they are pinned to.Any version nvm can install for builds; functions fall back to Node.js 24 when the pinned version is about to be deprecated on AWS.

On your own servers and containers nobody switches Node.js 20 off for you. It simply stops getting security fixes, which is the bigger risk of the two.

Frameworks

FrameworkNode.js it supports
Angular 22^22.22.3, ^24.15.0 or ^26.0.0 (no Node.js 20)
Angular 20 and 21^20.19.0, ^22.12.0 or ^24.0.0
Nuxt 4 (4.6.3)^22.22.3, ^24.15.0 or 26 and newer
NestJSApps: 20.19 or later. The Nest CLI generators: 22.22.3+, 24.15+ or 26+
Next.js 1620.9 or later
Express 518 or later

Angular 22 and Nuxt 4 already refuse Node.js 20, so on those you upgrade Node.js first, then the framework. Next.js 16 and Express 5 still install on 20, which makes it easy to miss that the runtime underneath is out of support.

4. Step by step

  1. Inventory: where Node.js runs (servers, containers, CI, serverless functions, build images) and which version each one pins: .nvmrc, .node-version, engines in package.json, Docker base images, CI config.
  2. Run your tests on the target version with --pending-deprecation (or --throw-deprecation in CI) so every deprecated call shows up.
  3. Update dependencies, rebuild native add-ons, and replace packages that haven't had a release in years.
  4. Run the official codemods (below) on a separate branch, review the changes and run the tests again.
  5. Test outgoing connections for the stricter crypto in 24: payment providers, partner APIs, SMTP, databases with TLS.
  6. Update every pin in one go, so CI, staging and production run the same version, and set the new version in your host's settings.
  7. Deploy at a quiet moment, watch the logs for warnings, and keep the previous release ready to roll back to.

5. Tools that help

  • Official codemods from the Node.js project, run with npx codemod run @nodejs/<name>. For 20 → 22: import-assertions-to-attributes and crypto-createcipheriv-migration. For 22 → 24, among others: dirent-path-to-parent-path, fs-access-mode-constants, process-assert-to-node-assert and tls-create-secure-pair-to-tls-socket. Not every change has one yet.
  • Node.js's own flags: --pending-deprecation shows deprecations that are off by default, --trace-deprecation prints where they come from, and --throw-deprecation turns them into errors.
  • engines and devEngines in package.json: engines only warns unless engine-strict is set; npm's devEngines can stop npm install on the wrong runtime, so the whole team moves together.
  • Your host's version setting: engines.node on Vercel and Heroku, .nvmrc or NODE_VERSION on Netlify, the runtime identifier (nodejs24.x) on AWS Lambda.

Sources