Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: explicitly mention that omitting npm version means using version bundled with Node? (PR#957) #1682

Open
bobo96run opened this issue Feb 5, 2024 · 1 comment

Comments

@bobo96run
Copy link

Re-hi and thank you again for this awesome tool!

I am a new user of Volta, and when starting to configure my projects, I naively explicitly specified npm version alongside node in package.json, e.g.:

{
  "volta": {
    "node": "14.21.3",
    "npm": "6.14.18"
  }
}

But now I realize that I can omit the npm spec, and Volta will automatically use the version that is bundled with the specified Node version (which is in this case indeed 6.14.18), as introduced by PR #957 (see issue #953).

I think it would be worthwhile mentioning this handy behaviour explicitly in the documentation?
Maybe here: https://docs.volta.sh/guide/understanding#pinning-node-engines

@bobo96run
Copy link
Author

Probably related to #1542?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant