Skip to content

Comments

chore(deps): update .node-version to 24#1582

Merged
jennifer-shehane merged 1 commit intocypress-io:masterfrom
MikeMcC399:update/node-version
Nov 6, 2025
Merged

chore(deps): update .node-version to 24#1582
jennifer-shehane merged 1 commit intocypress-io:masterfrom
MikeMcC399:update/node-version

Conversation

@MikeMcC399
Copy link
Collaborator

Situation

Node.js 24.x transitioned to Active LTS status with the release of Node.js 24.11.0, codename "Krypton" on Oct 28, 2025.

.node-version currently contains 22 which is interpreted as the latest Node.js 22.x version available.

.node-version is used as a default for users manually working with the repo (or a clone of it) and for certain example workflows in .github/workflows that use action/setup-node to specify which version of Node.js to run under:

Workflow Node.js
.github/workflows/example-yarn-modern-pnp.yml .node-version
.github/workflows/example-yarn-modern.yml .node-version

Additionally the following workflows contain hard-coded Node.js versions:

Workflow Node.js
.github/workflows/example-basic-pnpm.yml 22
.github/workflows/example-node-versions.yml 20, 22, 24 & 25

There is no .nvmrc version file in the repo, which would be used by nvm version managers.

Change

Verification

Ubuntu 24.04.3, Node.js 24.11.0 LTS

n auto # if using n / or nvm use
git clean -xfd
npm install
npm run format
npm run build

Confirm no changes made.

npm run update:cypress

Confirm that updating Cypress runs successfully and that no unexpected updates are made.

Notes

Updating from Node.js 22 (22.21.1) to Node.js 24 (24.11.0), updates from npm 10.9.4 to npm 11.6.1 which contains a fix for peer dependency flag propagation. This causes the addition of "peer": true to several transient dependencies in npm lockfiles package-lock.json.

This change does not affect the version of Node.js that the action internally runs under. This remains as node20 at this time. A separate issue #1519 tracks this change, together with other related dependencies which will need updating.

Workflows that do not use action/setup-node instead run using the default version of Node.js as defined by their respective GitHub Actions hosted runner images. These are currently:

Runner image label Image Node.js default
macos-15 / macos-latest macos-15-arm64 22.21.0
ubuntu-22.04 ubuntu-22.04 20.19.5
ubuntu-24.04 / ubuntu-latest ubuntu-24.04 20.19.5
windows-2025 / windows-latest windows-2025 22.21.0

refresh npm lockfiles (package-lock.json)
add .nvmrc with 24
@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 self-assigned this Nov 6, 2025
@MikeMcC399 MikeMcC399 marked this pull request as ready for review November 6, 2025 09:40
@jennifer-shehane jennifer-shehane merged commit 53299cb into cypress-io:master Nov 6, 2025
82 checks passed
@MikeMcC399 MikeMcC399 deleted the update/node-version branch November 6, 2025 14:09
@github-actions
Copy link

🎉 This PR is included in version 6.10.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants