Skip to content

fix: accept supported Node.js prereleases at startup - #10175

Merged
reggi merged 1 commit into
latestfrom
fix/node-prerelease-engines
Oct 30, 2026
Merged

reggi merged 1 commit into
latestfrom
fix/node-prerelease-engines

Conversation

@reggi

@reggi reggi commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Use includePrerelease: true in the startup engine check, matching the existing policy in npm-install-checks. This prevents unsupported-version warnings for Node.js alphas and other prereleases within the declared engine bounds without changing the engine range.

Add coverage for Node.js 27 and 28 alphas, a release candidate, and prereleases below the stable minimum or on an unsupported major.

Fixes #10169.

Validation

Both focused test files pass: test/lib/cli/entry.js and test/lib/cli/validate-engines.js. The supported prerelease cases failed before the fix. ESLint on both changed files and git diff --check pass.

Align startup engine validation with npm-install-checks by including prereleases within the supported Node.js version bounds.

Fixes #10169

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 484c16d2-f9ea-4406-b4d6-43ecd21a3341
@reggi
reggi requested a review from a team as a code owner October 27, 2026 20:33
@reggi
reggi merged commit 347dbb2 into latest Oct 30, 2026
29 checks passed
@reggi
reggi deleted the fix/node-prerelease-engines branch October 30, 2026 13:59
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Backport to release/v11 created: #10195

reggi added a commit that referenced this pull request Oct 30, 2026
Backport of #10175 to `release/v11`.

---------

Co-authored-by: Tea Reggi <reggi@github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 484c16d2-f9ea-4406-b4d6-43ecd21a3341
Copilot-Session: a0dedae4-e238-4b83-a15b-398abf209df9
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.

engines.node rejects Node.js Alpha versions (27.0.0-alpha.x.y.z)

2 participants