Skip to content

Framework: Update Node.js to v24 (wp/6.8) - #86439

Open
sirreal wants to merge 2 commits into
wp/6.8from
build/node-24-wp-6.8
Open

sirreal wants to merge 2 commits into
wp/6.8from
build/node-24-wp-6.8

Conversation

@sirreal

@sirreal sirreal commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What?

Sets .nvmrc to Node.js 24.20 on wp/6.8, as on trunk, and regenerates package-lock.json with npm 11.

Why?

The wordpress-develop 6.8 branch moves to Node.js 24 in WordPress/wordpress-develop#13837. npm 11 rejects this branch's lockfile: npm ci exits with EUSAGE because nested entries such as docker-compose 0.24.2 under packages/env, which asks for ^0.24.3, do not satisfy their ranges. This fails the Gutenberg build job on that PR.

How?

npm install --package-lock-only with npm 11. No entry changes version, 2 are added and 75 are removed. packages/env gets docker-compose 0.24.8, six packages that ask for uuid ^9.0.1 use the hoisted 9.0.1 instead of a nested 8.3.2, and the other removed entries are nested copies that now resolve to hoisted ones, 59 of them @babel/* plugins and helpers under packages/babel-preset-default (7.25.7, hoisted 7.25.9).

Testing Instructions

With Node.js 24 and npm 11: npm ci && npm run build.

Use of AI Tools

AI assistance: Yes
Tools: Claude Code
Model: Claude Opus 5.5
Used for: Regenerating the lockfile, building on Node.js 24, and drafting this description.

Regenerates package-lock.json with npm 11.
@sirreal sirreal added the [Type] Build Tooling Issues or PRs related to build tooling label Nov 6, 2026
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 28676d19-9f74-4b08-9e2f-c9caea7c63e2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Matches trunk's .nvmrc. Node.js 24.20 bundles npm 11.19.
@sirreal

sirreal commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

The Compressed Size failure comes from the base branch, not this PR. The check installs and builds this PR, then resets to the base branch and runs npm ci again to build the comparison, with the Node.js 24.20 it set up from this PR's .nvmrc. npm 11 rejects the base branch's lockfile.

@sirreal
sirreal marked this pull request as ready for review November 12, 2026 05:07
@sirreal
sirreal requested a review from desrosj November 12, 2026 05:07
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: sirreal <jonsurrell@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant