Skip to content

deps: patch npm engines to accept alpha versions - #67063

Merged
aduh95 merged 1 commit into
nodejs:mainfrom
RafaelGSS:deps-patch-npm-engines-to-accept-alpha-versions
Oct 27, 2026
Merged

aduh95 merged 1 commit into
nodejs:mainfrom
RafaelGSS:deps-patch-npm-engines-to-accept-alpha-versions

Conversation

@RafaelGSS

Copy link
Copy Markdown
Member

npm 12.1.0 declares engines.node as ^22.22.2 || ^24.15.0 || >=26.0.0, which does not match the Alpha versions of the 27 release line (27.0.0-alpha.x.y.z). npm prints an unsupported version warning on every invocation, and test-release-npm fails on release builds.

Add >=27.0.0-alpha to the range until a new npm release includes it.

Upstream issue: npm/cli#10169
Refs: #67062

Floating patch for v27.x-staging only. It can be dropped on the next npm update that includes the upstream fix.

cc @nodejs/npm @nodejs/releasers

npm 12.1.0 declares `engines.node` as
`^22.22.2 || ^24.15.0 || >=26.0.0`, which does not match the Alpha
versions of the 27 release line (`27.0.0-alpha.x.y.z`). npm prints an
unsupported version warning on every invocation, and `test-release-npm`
fails on release builds.

Add `>=27.0.0-alpha` to the range until a new npm release includes it.

Upstream issue: npm/cli#10169
Refs: nodejs#67062

Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/security-wg

@RafaelGSS RafaelGSS changed the title deps: patch npm engines to accept alpha versions [v27.x] deps: patch npm engines to accept alpha versions Oct 27, 2026
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. npm Issues and PRs related to the npm client dependency or the npm registry. v27.x Issues that can be reproduced on v27.x or PRs targeting the v27.x-staging branch. labels Oct 27, 2026
ruyadorno
ruyadorno previously approved these changes Oct 27, 2026
@aduh95
aduh95 changed the base branch from v27.x-staging to main October 27, 2026 16:40
@aduh95
aduh95 dismissed ruyadorno’s stale review October 27, 2026 16:40

The base branch was changed.

@aduh95 aduh95 changed the title [v27.x] deps: patch npm engines to accept alpha versions deps: patch npm engines to accept alpha versions Oct 27, 2026
@aduh95 aduh95 added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Oct 27, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 27, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@aduh95 aduh95 added the fast-track PRs proposed for a shorter-than-standard waiting period before landing. label Oct 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast-track has been requested by @aduh95. Please 👍 to approve.

@aduh95
aduh95 merged commit 75191c4 into nodejs:main Oct 27, 2026
79 of 82 checks passed
@aduh95

aduh95 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Landed in 75191c4

@aduh95 aduh95 added dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. dont-land-on-v26.x PRs that should not land on the v26.x-staging branch and should not be released in v26.x. and removed v27.x Issues that can be reproduced on v27.x or PRs targeting the v27.x-staging branch. labels Oct 27, 2026
RafaelGSS added a commit that referenced this pull request Oct 27, 2026
npm 12.1.0 declares `engines.node` as
`^22.22.2 || ^24.15.0 || >=26.0.0`, which does not match the Alpha
versions of the 27 release line (`27.0.0-alpha.x.y.z`). npm prints an
unsupported version warning on every invocation, and `test-release-npm`
fails on release builds.

Adds `>=27.0.0-alpha` to the range until a new npm release includes it.

Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: #67063
Refs: #67062
Refs: npm/cli#10169
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Ruy Adorno <ruy@vlt.sh>
(cherry picked from commit 75191c4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. dont-land-on-v26.x PRs that should not land on the v26.x-staging branch and should not be released in v26.x. fast-track PRs proposed for a shorter-than-standard waiting period before landing. needs-ci PRs that need a full CI run. npm Issues and PRs related to the npm client dependency or the npm registry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants