Languages

Node.js 22 End of Life: How to Move to Node 26 LTS

Node 22 loses security fixes on April 30, 2027. Here is the schedule, what Node 26 removes, and how to test the move.

Tyler Brennan

Runtime & Language Tooling Writer

Published 7 min read
Close-up of website code on a screen.
On this page 7 sections

Node.js 22 reaches end of life on April 30, 2027. Node 26 entered Active LTS on October 28, 2026, so most teams can skip Node 24 and move straight there. Check for removed APIs first, run your test suite with deprecation tracing on, and switch production only after a clean staging run.

This guide covers the Node.js 22 end of life timeline, the Node 26 changes that break real services, and a test plan you can run this week. It is written for engineers and leads who own a Node service that still runs on the 22 line.

Backtrace reads release notes for what a version removes before what it adds. That habit is why the breaking changes get the most space below.

What the Node.js Release Schedule Says About Node 22 End of Life

A desk calendar open to a single month, a stand-in for the Node.js release schedule.

The Node.js Release Working Group publishes the schedule in its Node.js Release repository on GitHub. The table there lists Node 22 as Maintenance LTS with an end-of-life date of April 30, 2027. It also lists Node 24 as Maintenance LTS and Node 26 as Active LTS.

Here are the three lines that matter today, with dates taken from that table.

What the Node.js Release Schedule Says About Node 22 End of Life
ReleaseStatusActive LTS startMaintenance startEnd of life
Node 22 (Jod)Maintenance LTS2024-10-292025-10-212027-04-30
Node 24 (Krypton)Maintenance LTS2025-10-282026-10-202028-04-30
Node 26 (Lithium)Active LTS2026-10-282027-10-202029-04-30

The pattern is easy to read. An even-numbered major version gets 12 months of Active LTS, then 18 months of Maintenance. Maintenance means fixes for critical bugs and security problems, not new features.

End of life has a plain meaning. The project stops shipping fixes for that line, including security fixes. A service on Node 22 after April 30, 2027 would carry every new runtime vulnerability with no upstream patch.

The same page warns that dates are subject to change. Check it again before you commit a quarter of work to a deadline.

One more change is coming. From Node 27 on, every release line goes through an Alpha phase and is promoted to LTS. Those lines stay in Active LTS for the full 30 months and skip Maintenance. Node 27 is in Alpha now, so the old 12-plus-18 rhythm ends after Node 26.

Should You Move From Node 22 to Node 24 or Node 26?

Most teams still on Node 22 should move straight to Node 26. Node 24 is already in Maintenance and ends in April 2028, while Node 26 runs to April 2029. Going to 24 first means two upgrades in two years. Choose 24 only if a dependency blocks 26.

The cost of skipping is that you absorb every removal between the two lines in one step. That sounds scary, but the work is the same list of checks either way. You simply run it once.

Use three questions to decide. Does any dependency list 26 as unsupported? Does a vendor or cloud platform you rely on certify 26? Can your staging environment carry real traffic for two weeks? Three yes answers mean you can plan the move for this quarter, as of November 2026.

There is a real counterpoint. Node 26 shipped as a Current release in May 2026, so its ecosystem has had less time to settle than Node 24. If your service leans on native addons or a long tail of old packages, give the 26 line a few extra weeks in staging.

Upgrades of this kind follow a familiar shape in other stacks too. Our walkthrough of upgrading to Rust 1.100 and the guide to moving to DuckDB 2.0 LTS without breaking pipelines both start the same way: read what was removed, then test against your own code.

What Node 26 Removes That Can Break a Node 22 Service

Lines of source code on a monitor, representing the APIs removed in Node 26.

The Node.js 26.0.0 release notes list the deprecations and removals. These are the ones most likely to stop a build or a deploy.

  • http.Server.prototype.writeHeader() is fully removed. Call writeHead() instead.
  • The legacy _stream_ modules are removed. That covers _stream_wrap, _stream_readable, _stream_writable, _stream_duplex, _stream_transform and _stream_passthrough. Import from node:stream.
  • --experimental-transform-types is removed. Scripts that run TypeScript through that flag will fail at startup.
  • module.register() now emits a runtime deprecation warning, so custom loader setups will print it.
  • DEP0203, DEP0204 and DEP0201 became runtime deprecations in crypto and stream.

Here is what the two most common fixes look like in code. The first swaps the removed method. The second replaces a legacy stream import.

text
// before: removed in Node 26
server.writeHeader(200, { 'content-type': 'text/plain' });
const { Readable } = require('_stream_readable');

// after
server.writeHead(200, { 'content-type': 'text/plain' });
const { Readable } = require('node:stream');

Both edits are mechanical. The harder cases hide inside dependencies, which is why the search step in the next section covers node_modules and not just your own source.

The build floor moved too. Node 26 requires GCC 13.2 and drops Python 3.9 from its build tooling. That matters if you compile Node yourself or build native addons on an old CI image.

The additions are gentler. Temporal, the modern date and time API, is now on by default. V8 moved to 14.6, which adds Map.prototype.getOrInsert() and Iterator.concat(). Undici, the HTTP client behind fetch, moved to version 8.0.2.

None of these additions forces a code change. Your existing Date code keeps working. A package that checks for Temporal and switches code paths may now take the native route, so retest anything date-heavy.

How to Test a Node 26 Upgrade Before Production

A spiral notebook with a short handwritten checklist and a black pen.

A good test plan finds the failure you will see first, then the one you will see second. The sequence below does that in about a day for a typical service. Our piece on the importance of testing in software delivery explains why this step pays for itself.

Follow these steps in order.

  1. Install Node 26 next to your current version with a version manager such as nvm or fnm. Do not replace anything yet.
  2. Search your code and dependencies for the removed names. Run grep -rn "_stream_" node_modules src and repeat for writeHeader.
  3. Run the full test suite on Node 26 with node --trace-deprecation so every warning prints a stack trace.
  4. Run it again with --throw-deprecation in a throwaway branch. Any crash points to code you own or a package you must update.
  5. Update the dependencies that fail, then rerun until the suite is clean.
  6. Deploy to staging and watch error rates, memory use and startup time for a full traffic cycle.

Do not skip the staging soak. Unit tests rarely exercise the code paths that run once a day, such as a nightly export or a certificate refresh. Let staging run through at least one of each before you call the upgrade done.

Expect the first failure to be a package that still imports an old stream module. The fix is almost always a newer release of that package, not a patch of your own.

Rolling Out Node 26 in CI and Containers

A laptop on a home office desk, used here for local Node version testing.

A runtime upgrade fails quietly when the versions disagree. Your laptop runs 26, CI runs 22, and the container image runs 24. Pick one version and write it down everywhere.

Set the engines field in package.json to your supported range. Add a .nvmrc file so local shells match. Change the Node version in your CI workflow and in your Dockerfile base image in the same pull request.

Run both versions in CI for a short window. A matrix job with Node 22 and Node 26 shows which tests fail only on the new line. When the 26 column stays green for a week, drop 22 from the matrix.

Watch a short list of numbers after the switch. Compare p95 latency, memory use after an hour of traffic, and cold start time against the week before. A runtime upgrade rarely changes them by much, but a sudden jump is the clearest sign that a dependency is taking a slower path.

Keep a rollback ready. Tag the last good image on Node 22 so you can redeploy it in minutes. Keep it until the new line has handled a full release cycle.

What to Do If You Cannot Leave Node 22 Yet

Some teams cannot move this quarter. A native addon may lack a build for 26, or a vendor may certify only older runtimes. Treat that as a dated risk, not a permanent state.

Write the deadline into your tracker with April 30, 2027 as the hard stop. Name the blocking dependency and the person who owns it. List the services still on Node 22 so nobody finds one by surprise in the spring.

In the meantime, stay on the latest 22.x patch release. Narrow what those services can reach on your network. A runtime with a known end date should not sit next to your most sensitive data.

Conclusion

Share the result with your team in plain terms: which versions you tested, which packages you updated, and which warnings remain. A short written record makes the next upgrade, to Node 27 or beyond, much faster.

The Node.js 22 end of life date is fixed enough to plan around, and Node 26 is the safer destination. Start with the removal list, run your tests with deprecation tracing, and move CI, containers and package.json together. Backtrace recommends doing the work in the next quarter, while April 2027 is still far away.

When does Node.js 22 reach end of life?
Node.js 22 reaches end of life on April 30, 2027, according to the Node.js Release Working Group schedule. It has been in Maintenance LTS since October 2025, so it only receives critical bug and security fixes today. After the end date, the project ships no further fixes of any kind for that line.
Can I skip Node 24 and upgrade from Node 22 straight to Node 26?
Yes. Node 26 is the Active LTS line and runs until April 2029, while Node 24 is already in Maintenance. You absorb every removal between the lines in one step, so run the same checks: search for removed APIs, test with deprecation tracing, then soak the build in staging.
What breaks when you upgrade to Node 26?
The most likely failures are code that calls the removed writeHeader method, packages that import the legacy _stream_ modules, and scripts that use the removed experimental transform types flag. Loaders built on module.register now print a deprecation warning. Native builds also need GCC 13.2 or newer.
Is Node 26 ready for production use?
Node 26 entered Active LTS on October 28, 2026, and LTS lines are the ones meant for production services. Readiness still depends on your own dependencies. Test against the removed APIs, run staging through a full traffic cycle, and keep a Node 22 image tagged for fast rollback.

Written by

Tyler Brennan

Runtime & Language Tooling Writer

11+ years experience

Tyler spent nine years as a full-stack engineer at a mid-sized e-commerce company, where he owned the Node.js services and the build pipeline behind them. He ran four major runtime upgrades there and still keeps the habit of reading changelogs for what gets removed before what gets added. At Backtrace he covers language releases, package managers and the local tooling that decides how fast a team moves. His rule is simple: an upgrade guide is only useful if it lists the failure you will see first and the command that finds it.

Credentials

  • B.S., Computer Science, University of Wisconsin-Madison
  • Former Senior Full-Stack Engineer, e-commerce platform (2014-2023)
  • OpenJS Foundation Node.js Application Developer certification