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.js | Status today | End of life |
|---|---|---|
| Node.js 20 (Iron) | End of life | 30 April 2026 |
| Node.js 22 (Jod) | Maintenance LTS | 30 April 2027 |
| Node.js 24 (Krypton) | Maintenance LTS | 30 April 2028 |
| Node.js 25 | End of life | 1 June 2026 |
| Node.js 26 (Lithium) | Active LTS since 28 October 2026 | 30 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 usewithinstead. crypto.createCipher()andcrypto.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 fromutil.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 WHATWGURLAPI.SlowBufferis runtime-deprecated too (DEP0030).- Removed:
tls.createSecurePair()(DEP0064),dirent.path(usedirent.parentPath, DEP0178),OutgoingMessage.prototype._headers(DEP0066),process.assert()(DEP0100) and callingfs.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
| Host | Node.js 20 | Supported next |
|---|---|---|
| AWS Lambda | Deprecated 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 Run | Decommissioned 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 Functions | No longer listed as supported. | Node.js 22 and 24. Linux Consumption plan apps stop at 22; Node.js 24 needs the Flex Consumption plan. |
| Vercel | Deprecated 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). |
| Netlify | New 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
| Framework | Node.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 |
| NestJS | Apps: 20.19 or later. The Nest CLI generators: 22.22.3+, 24.15+ or 26+ |
| Next.js 16 | 20.9 or later |
| Express 5 | 18 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
- Inventory: where Node.js runs (servers, containers, CI, serverless functions,
build images) and which version each one pins:
.nvmrc,.node-version,enginesin package.json, Docker base images, CI config. - Run your tests on the target version with
--pending-deprecation(or--throw-deprecationin CI) so every deprecated call shows up. - Update dependencies, rebuild native add-ons, and replace packages that haven't had a release in years.
- Run the official codemods (below) on a separate branch, review the changes and run the tests again.
- Test outgoing connections for the stricter crypto in 24: payment providers, partner APIs, SMTP, databases with TLS.
- 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.
- 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-attributesandcrypto-createcipheriv-migration. For 22 → 24, among others:dirent-path-to-parent-path,fs-access-mode-constants,process-assert-to-node-assertandtls-create-secure-pair-to-tls-socket. Not every change has one yet. - Node.js's own flags:
--pending-deprecationshows deprecations that are off by default,--trace-deprecationprints where they come from, and--throw-deprecationturns them into errors. enginesanddevEnginesin package.json:enginesonly warns unlessengine-strictis set; npm'sdevEnginescan stopnpm installon the wrong runtime, so the whole team moves together.- Your host's version setting:
engines.nodeon Vercel and Heroku,.nvmrcorNODE_VERSIONon Netlify, the runtime identifier (nodejs24.x) on AWS Lambda.
Sources
- Node.js: release schedule (nodejs/Release)
- Node.js: evolving the release schedule
- Node.js: migrating from v20 to v22
- Node.js: migrating from v22 to v24
- Node.js 22.12.0 release notes (require(esm))
- Node.js 24.0.0 release notes
- Node.js: deprecated APIs
- Node.js: command-line options
- Node.js: userland migrations (codemods)
- AWS Lambda: runtimes
- Google Cloud: Cloud Run functions runtime support
- Azure Functions: supported languages
- Vercel: Node.js 20 is being deprecated
- Vercel: supported Node.js versions
- Netlify: available software at build time
- Angular: version compatibility
- NestJS: first steps
- Nuxt: installation
- Next.js: installation
- npm: package.json (engines, devEngines)
