Skip to content

Allow explicitly setting npm version to bundled? #2085

@alxndrsn

Description

@alxndrsn

Tested with volta version: 2.0.2.

Would there be support for allowing an explicit declaration that the expected npm version is that bundled with the current node version?

Running volta pin npm@bundled doesn't seem to set anything in package.json:

$ volta pin npm@bundled && jq .volta package.json 
success: set package.json to use bundled npm (currently 10.9.4)
{
  "node": "22.21.1"
}

And setting .volta.npm to "bundled" in package.json doesn't seem to work:

$ jq .volta.npm package.json && npm i
"bundled"
Volta error: Could not parse version "bundled"

Please verify the intended version.

Would there be support for allowing explicitly declaring "bundled" as the expected version? It would help make it clearer to casual users what the expected version of npm is.

Related: #1682

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions