Could npm 12 be installed on the wordpress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/ build server? The latest release is 12.2.0. This follows the same pattern as Installing Node.js 24 on the build server.
npm 12 is a security release. Dependency install scripts, git dependencies and remote URL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org dependencies all become opt-in, per RFC 54 and the breaking changes announcement.
Unlike previous majors, it will not arrive with a Node.js upgrade. The Node.js Release WG decided not to ship it on Node.js 22, 24 or 26, so it has to be installed explicitly, as Node.js itself was.
Requirements
npm 12 requires Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, which the build server already satisfies.
While you are in there, it would be good to move Node.js 24.x to the latest release. It has been on 24.18.0 since June, several releases behind 24.21.0, the latest at the time of writing.
Installation
npm install --global npm@12
Verification
node --version # expect v24.21.0 or newer
npm --version # expect 12.2.0 or newer
Older branches
The remaining older release branches are being updated to Node.js 24.x in parallel, so this does not need to wait on them.
Readiness
The PRs to make the flip are ready:
- Gutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc.
https://wordpress.org/gutenberg/: #82732
- wordpress-develop: #13536
Preparatory work: wordpress-develop#13505, Gutenberg#82235, Gutenberg#82775.
Tracked in Gutenberg#82328.
CC: @desrosj, @aduth, @sirreal, @jsnajdr, @lancewillett