Versioned package doesn't run with npx (npm exec) when the package has already been installed globally with npm. The environment is Windows 10, Node 16, NPM 8.
npx npm@6 -v results in output:
Need to install the following packages:
npm@6
Ok to proceed? (y) y
8.5.2
Subsequent npx npm@6 -v call skips the installation to cache and runs globally installed package. Same for other global packages. I can verify that correct package versions are installed to npm-cache/_npx but not sure what happens with them next
I believe this has been changed since NPM 6, npx cache is used
I wonder what happens inside. Is it a known issue? Any workarounds to run versioned global packages while keeping the default one installed?
