Upgrade Node.js and npm to version 24 LTS#2318
Open
MarceloRGonc wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Upgrades the repository’s runtime/tooling baseline from Node.js 20 to Node.js 24 (LTS) across local dev, containers, and CI, and updates native dependency isolated-vm for Node 24/V8 compatibility.
Changes:
- Bump Node version references in
.nvmrcand Docker build images to Node 24. - Update CI workflows to install Node via
actions/setup-node@v4using.nvmrc. - Upgrade
isolated-vmto a Node-24-compatible release and refresh the lockfile accordingly.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updates isolated-vm dependency for Node 24 compatibility. |
| package-lock.json | Locks isolated-vm@6.1.2 and its transitive dependency changes. |
| engine.Dockerfile | Switches Lambda base image to Node 24. |
| Dockerfile | Switches app image base to Node 24 Alpine. |
| .nvmrc | Updates local/CI Node version source to Node 24. |
| .github/workflows/ci.yml | Ensures CI jobs use .nvmrc Node via setup-node. |
| .github/workflows/chromatic.yml | Ensures Chromatic job uses .nvmrc Node via setup-node. |
| .devcontainer/Dockerfile | Updates devcontainer Node variant to Node 24 (bookworm). |
Comments suppressed due to low confidence (1)
engine.Dockerfile:7
engine.Dockerfileis now based onpublic.ecr.aws/lambda/nodejs:24, butNODE_VERSIONis still set to a Node 20 value. This is misleading and can cause confusion/troubleshooting issues (and there are other Node-20-specific pins later in the file that should be revisited as part of this upgrade).
FROM public.ecr.aws/lambda/nodejs:24
# Architecture will be set automatically by Docker buildx
ARG TARGETARCH
ENV NODE_VERSION=20.18.0
ENV NODE_ENV=production
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b5324b5 to
f0abea2
Compare
- Update .nvmrc, Dockerfile, engine.Dockerfile, and devcontainer to Node 24 - Upgrade isolated-vm from 5.0.1 to 6.1.2 for Node 24 compatibility - Add actions/setup-node@v4 with node-version-file to all CI jobs - npm 11.13.0 ships with Node 24 (lockfileVersion 3 unchanged) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
f0abea2 to
496be20
Compare
|
ravikiranvm
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Upgrade the project runtime from Node.js 20 to Node.js 24 LTS with npm 11.
Changes
v20.19→v24.16.0node:20.19-alpine3.20→node:24.16.0-alpine3.23nodejs:20→nodejs:244.0.11-24-bullseyein both Dockerfile and devcontainer.jsonactions/setup-node@v4withnode-version-file: '.nvmrc'to all jobs inci.ymlandchromatic.ymlchromaui/actionto full commit SHA and upgraded to v17isolated-vm5.0.1 → 6.1.2 (required for Node 24 V8 ABI compatibility)Verification
npm ciinstalls cleanly on Node 24.16.0 / npm 11.13.0blocks-azurefailure unrelated to this change)Known warnings
i18next-parser@9.4.0emits anEBADENGINEwarning (engines field doesn't list Node 24). It's deprecated and should be replaced withi18next-cliin a follow-up.Part of CI-196