-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] npx does not respect version range if a compatible version is found inside any package installed globally #7486
Comments
For me it's showing correct version ~ $ npx generator-jhipster@8.4.0 --version
8.4.0
~ $ npm ls -g
/Users/testing/.nvm/versions/node/v22.0.0/lib
├── corepack@0.26.0
├── generator-jhipster@8.3.0
├── latest@0.2.0
└── npm@10.7.0 |
Anything else I could do to debug? |
does you cwd has that package installed ? |
It's an empty folder.
|
@milaninfy I think a found a way to reproduce:
If I remove every global package and install the |
I've added a console.log in
It prints:
|
Duplicated in a workspace off of
|
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Installed package is used even if the version range does not match.
Expected Behavior
The version range should be respected.
Steps To Reproduce
No response
Environment
The text was updated successfully, but these errors were encountered: