Guide
Node.js 24 LTS: Upgrade from Node 22 in 2026



Plan a Node 22 to Node 24 upgrade: current LTS dates, dependency and native-addon checks, TLS testing, TypeScript limits, staging validation, and rollback.
Contents
Contents
Upgrade Node 22 to Node 24 by testing the target patch in CI, validating dependencies and integrations, then rolling out with a rollback artifact. As of November 1, 2026, both lines are Maintenance LTS; their scheduled EOL dates are April 30, 2027 and April 30, 2028 respectively. Node 26 is Active LTS, so confirm that 24 fits your platform constraints before committing to the migration.
| Release line | Status on November 1, 2026 | Initial release | Active LTS start | Maintenance start | End of life |
|---|---|---|---|---|---|
| Node.js 22, Jod | Maintenance LTS | 2024-04-24 | 2024-10-29 | 2025-10-21 | 2027-04-30 |
| Node.js 24, Krypton | Maintenance LTS | 2025-05-06 | 2025-10-28 | 2026-10-20 | 2028-04-30 |
| Node.js 26, Lithium | Active LTS | 2026-05-05 | 2026-10-28 | 2027-10-20 | 2029-04-30 |
Source: official Node.js release schedule, accessed November 1, 2026 (UTC). Dates can change. Maintenance is still a supported phase, but support through April 2028 does not mean Node 24 stays in Active LTS until then.
Decide whether Node 24 is the migration target
This page covers the Node 22 to Node 24 migration. Use the Node 22 vs Node 24 decision guide for the comparison. Node 24 is a reasonable target when your application, dependencies and provider support it, particularly if your platform has already approved that line. For a new deployment without that constraint, include Node 26 in the evaluation.
The Release Working Group's phase definitions, accessed November 1, 2026, describe maintenance as focused on critical bug fixes and security updates. They do not certify an application's dependencies, certificates or deployment configuration. Do not use LTS status as the only production-readiness check.
| Your starting point | Next action | Condition for proceeding |
|---|---|---|
| Node 22 service with a platform approved for 24 | Add a Node 24 CI job | Same lockfile and tests pass on the selected patch |
| Native dependencies without confirmed 24 support | Check maintainer support and test the real target image | Installation and addon-backed features work |
| Internal PKI or client certificates | Exercise TLS integrations in staging | Expected certificate verification and connections succeed |
| Runtime upgrade during a release freeze | Prepare CI evidence and a dated rollout plan | Owner and deployment window agreed before Node 22 EOL |
| New service with no runtime constraint | Evaluate Active LTS Node 26 too | Framework and provider support verified |
These are suggested migration gates. They do not predict the result for a particular application.
Step 1: Record the working baseline
Record the exact Node version, package-manager version, image identifier and deployment settings for the current release. Save its build artifact and lockfile. Include background workers, scheduled jobs, migration scripts and command-line tools in the inventory, rather than checking only the HTTP server.
node --version
npm --version
node -p 'JSON.stringify(process.versions, null, 2)'
Run the existing tests on Node 22 before starting the upgrade. If that baseline already fails, record the failure separately so it is not attributed to Node 24. Identify important paths absent from the suite, such as a native image-processing task or a private API connection, and plan a smoke test for each one.
Choose an exact maintained Node 24 patch or image digest for the trial. Record which operating system and architecture it targets. A local runtime version is useful evidence, but the deployment artifact is the unit you must ultimately validate.
Step 2: Install from the existing lockfile
The Node.js 24.0.0 release notes, accessed November 1, 2026, identify npm 11, V8 13.6, Undici 7 and global URLPattern among the changes. If you use npm, record its version during both trials. If you use pnpm, Yarn or Bun, keep that package manager fixed for the first runtime comparison.
With nvm and an npm-based project, a first trial could be:
nvm install 24
nvm use 24
node --version
npm --version
npm ci
npm test
npm run build
Adapt the commands to your repository. Start with the committed lockfile and review any required dependency change separately. Avoid changing the runtime, package manager and dependency versions in one unexplained batch; separate changes make a failure easier to trace and revert.
Inspect dependencies' documented Node support and engine constraints. For native dependencies, check the maintainer's releases for the target runtime, operating system and architecture. A vulnerability audit is a separate check; it is not a test of Node 24 compatibility.
Step 3: Add Node 24 to CI before changing production
Run the same install, test and build steps on Node 22 and Node 24. Keep Node 22 coverage while it remains a supported rollback target or a runtime you promise package consumers. Resolve failures on the target branch before removing the old CI job.
For a GitHub Actions job already configured with a runner and checkout, the runtime portion can use this matrix:
strategy:
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: npm run build
Major-version selectors follow newer patches as they become available. Record the resolved version in each job; use an exact version or image digest when reproducing a failure. Keep environment variables and service dependencies equivalent across jobs so the comparison tests the intended change.
Step 4: Check native addons, loaders and removed APIs
The Node-API ABI documentation, accessed November 1, 2026, distinguishes Node-API's cross-version compatibility from direct V8 and Node C++ interfaces. Addons using those other interfaces may need updates or recompilation. Node-API compatibility also does not guarantee compatibility with external libraries an addon uses.
Test features that actually load each addon. If installation builds from source, record the compiler and system-library requirements from that addon's documentation. Do not assume every addon needs a new compiler merely because the Node major changed.
The Node 24.0.0 release notes list tls.createSecurePair() removal and url.parse() runtime deprecation. Search your code for those APIs and inspect warnings from dependencies. Use the relevant API's documentation to choose a replacement rather than applying a text substitution to low-level networking code.
For ESM/CommonJS integrations, exercise CLI entry points, configuration loaders and plugins. The Node 24 module documentation, accessed November 1, 2026, limits require(esm) to synchronous module graphs. Keep asynchronous loading where a module uses top-level await.
Step 5: Test TLS and HTTP integrations in the target image
The Node.js 24.5.0 release notes, accessed November 1, 2026, record the OpenSSL 3.5.1 upgrade. Use the exact target patch and image to test certificate trust, mutual TLS, proxies and external services. Avoid assuming that a named OpenSSL version alone establishes a certificate failure or a security benefit.
For a basic HTTPS smoke test against a staging service:
const https = require('node:https');
const request = https.get('https://staging-api.example.com/health', (response) => {
console.log('HTTP status:', response.statusCode);
response.resume();
});
request.setTimeout(5000, () => request.destroy(new Error('request timeout')));
request.on('error', (error) => {
console.error(error.message);
process.exitCode = 1;
});
Replace the example URL and add the application's real authentication and certificate configuration. A successful handshake does not establish that business requests work: assert the expected status and response in an integration test. Exercise retries, timeouts, streaming and proxy paths if the application uses them.
If a connection fails, compare the certificate chain, trust store, client credentials and image configuration. Fix the identified cause and repeat the test. Do not make disabled certificate verification or a weaker cipher configuration part of the migration plan.
Step 6: Keep TypeScript and performance changes separate
The Node 24 TypeScript docs, accessed November 1, 2026, mark type stripping stable from v24.12.0. It executes erasable TypeScript syntax without type checking and ignores tsconfig.json features such as path aliases. Full TypeScript tooling is still needed for features outside those limits.
The Node 22 docs, accessed the same day, already record default type stripping from v22.18.0. Do not treat direct execution of every .ts file as a new capability exclusive to Node 24, or remove your compiler based on the major version alone.
Run existing scripts and type checks without changing their execution strategy during the first trial. If you later replace a TypeScript runner, review and test that as a separate change. Likewise, benchmark the application's workload before claiming a speed improvement; this guide has no application benchmark establishing a percentage gain.
Step 7: Stage, roll out and verify rollback
Update local version files, CI, container images and the hosting platform's runtime selection in one reviewable migration. Check build-time and runtime versions separately, including workers and scheduled tasks. Deploy the actual production candidate to staging and run the integration checks above.
Before rollout, agree on the signals that would trigger rollback: failed smoke tests, new error classes, unacceptable latency or failed background jobs. Use the application's established operating thresholds. Keep the previous artifact available and verify the restore procedure, including whether intervening configuration or database changes affect it.
| Gate | Evidence before advancing |
|---|---|
| Baseline | Node 22 results and saved artifact |
| Target CI | Resolved runtime, successful install, tests and build |
| Staging | Native-module, loader, HTTP/TLS and worker smoke tests |
| Rollout | Target artifact identifier and observed application health |
| Rollback | Restorable previous artifact and tested procedure |
After production is stable under your team's release criteria, remove obsolete runtime pins and CI jobs deliberately. Keep a named owner for ongoing Node 24 patch updates and the next lifecycle review. Its April 30, 2028 EOL date is a planning limit, not permission to stop maintaining the deployed patch.
Related guides
- Node 22 vs Node 24: support status and the version decision.
- fnm vs nvm vs Volta: selecting local runtimes.
- JavaScript testing frameworks: application test tooling.
- Best JavaScript runtimes 2026: broader runtime context.