docs: note that a wrong in-repo npm version means a missing volta inventory entry - #526
Merged
Conversation
Volta does not always fetch a pinned npm on demand. When [email protected] is missing from its local inventory it silently falls back to the npm bundled with Node 22 (10.9.x), so the pin in package.json looks like it is working when it is not. Document the one-time `volta install [email protected]` and the version check in the README Install section. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Most contributors will already have the pinned npm in Volta's inventory, so lead with the version check as the trigger rather than prescribing the install for everyone. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
nabalone
force-pushed
the
volta-npm-install-note
branch
from
August 21, 2026 23:37
1e1e9ea to
d40d288
Compare
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
nabalone
marked this pull request as ready for review
August 21, 2026 23:38
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.
Summary
The repo pins both node and npm via Volta in
package.json([email protected],[email protected]), but Volta does not always download a pinned npm on demand. When[email protected]is absent from Volta's local inventory it silently falls back to the npm bundled with Node 22 (10.9.x) — sonpm --versionreports 10.9.8 in the repo while the pin looks correct inpackage.json.Adds a short note to the README Install section, phrased as a conditional: if the in-repo
npm --versionisn't the pinned version, that's the cause, andvolta install [email protected]fixes it once. Contributors who already have it in their inventory can read straight past.Docs only — no code or dependency changes.
Test plan
npx prettier --check README.mdpassesnpm-11.5.1.tgzin Volta's inventory, in-reponpm --versionreported10.9.8; aftervolta install [email protected]it reports12.0.2, and it keeps reporting12.0.2even with the user-level default set back to11.5.1— confirming the repo pin resolves from the inventory rather than from the user default.🤖 Generated with Claude Code