[BUG] npm exec doesn't honor package version #3667
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
npm x -q --yes --package=<package>@<version> -- <command>
doesn't honor<version>
, uses incompatible package that is locally available instead.Expected Behavior
npm x -q --yes --package=<package>@<version> -- <command>
honors<version>
, does not uses incompatible package that is locally available instead.Steps To Reproduce
package.json
:npm i
pnpm@6.12.1
is now installed locally.npm x
won't honor the version$ npm x -q --yes --package="pnpm@6.13.0" -- pnpm --version 6.12.1
The docs for
npm exec
state:Environment
The text was updated successfully, but these errors were encountered: