-
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] installing a package with incompatible peer dependencies and --force
sometimes results in an inf. loop
#7349
Comments
It seems that if I remove the explicit dependency on |
Reproduction steps:
|
Sorry, missed the |
The issue is in build-ideal-tree.js the buildDepStep() function is basically have code to check depsQueue if the queue has some dependency, it is recursively calling buildDepStep().. In this scenario the queue is never getting empty because of which it is going in infinite loop. |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
On testing-library/eslint-plugin-jest-dom@18afe30 doing
npm i eslint@9 --force
results in an inf. loop outputting:Related PR: testing-library/eslint-plugin-jest-dom#355
Expected Behavior
The install to complete fine, since I've
--force
'd itSteps To Reproduce
npm i eslint@9 --force
(also see https://github.com/testing-library/eslint-plugin-jest-dom/actions/runs/8586049626/job/23528114426?pr=355)
Environment
; copy and paste output from `npm config ls` here
The text was updated successfully, but these errors were encountered: