Repository navigation
[Fix] install-latest-npm: npm v12 is out - #3986
Merged
Merged
Conversation
ljharb
force-pushed
the
install-latest-npm-v12
branch
from
November 11, 2026 22:09
9ac3ffd to
015c4f1
Compare
ljharb
approved these changes
Nov 11, 2026
ljharb
left a comment
Member
There was a problem hiding this comment.
thanks, not sure how i forgot to do this :-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since npm 12 came out,
nvm install-latest-npmon something like node 22.12 or 24.10 gives you an npm that doesn't support it. npm 12 only takes node^22.22.2 || ^24.15.0 || >=26.0.0(itsenginesfield), and nvm still installs the latest on everything from 20.17 up, bar 21 and early 22.This pins npm 11 for the gap (20.17+, 22.9 to 22.22.1, 23, 24.0 to 24.14 and 25), same as npm 10 got pinned when 11 came out. The unit test now checks either side of each boundary - I ran it under sh, bash and zsh, not ksh.