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] npm possibly installs wrong dependencies #7300
Comments
@doberkofler I tried to replicate the issue and ran
|
What you've got is the following:
So we can see that So I would expect an install that looks like this:
I.e. Npm installs the most commonly depended on version at the root to have the smallest install. But instead you get this install:
I.e. Npm has installed a the lest commonly depended on version at the root and has the largest install. This seems like incorrect behaviour - npm is preferring the install with most duplication by default. For comparison:
|
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Based on the discussion with the maintainer of the typescript-eslint project in the SR typescript-eslint/typescript-eslint#8732, npm 10.5.0 wrongly resolves a dependency.
Expected Behavior
No response
Steps To Reproduce
Install:
Environment
The text was updated successfully, but these errors were encountered: