Repository navigation
docs: update install instructions for Node.js 25+ - #929
Open
loganrosen wants to merge 2 commits into
Open
loganrosen wants to merge 2 commits into
loganrosen wants to merge 2 commits into
Conversation
Node.js 25 no longer ships Corepack, so split the install section by whether Corepack is bundled and make the npm install steps visible. Switch the update command from `corepack@latest` to a bare `corepack`, which lets npm pick the newest release compatible with the running Node.js version instead of forcing one whose `engines` may not match. Also fix the `corepack disable` description, which locates Corepack rather than Node.js. Fixes nodejs#783 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 812ed6c7-9adb-4a4b-822e-a1f511614be2
It was written when Corepack shipped with every Node.js release and doesn't fit the section for versions where npm is the only option. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 812ed6c7-9adb-4a4b-822e-a1f511614be2
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.
Fixes #783
Node.js 25 stopped shipping Corepack (nodejs/node#57617), but the README still treated the bundled copy as the default and the npm install as a fallback hidden in a collapsed section.
corepack enable, still preferred on supported releases per the discussion in README.md needs fixing now that corepack is not bundled with nodejs #783) and Node.js versions without bundled Corepack (install from npm).<details>block, and noted thatcorepack enableisn't needed afterwards since the npm package already installs the yarn/pnpm shims.npm install -g corepack@latesttonpm install -g corepack. A bare name lets npm pick the newest version whoseenginesmatch the running Node.js (e.g. 0.34.7 on Node 25, since 0.35.0+ requires^22.22.2 || ^24.15.0 || >=26.0.0), while@latestinstalls 0.36.0 regardless and only warns. The bare form still upgrades an existing global install.corepack disabledescription: it locates Corepack on the PATH, not Node.js.