[BUG] Fresh npm install abides by overrides but subsequent installs revert #4727
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm i
with new overrides does not completely override all dependencies. It seems deeper dependencies are more likely to not be updated.npm i
does override all deps as expected.npm ls
reports invalid versions in this state andnpm ci
reports out of sync until annpm i
runs again.npm audit
reports clean passnpm i
again, the 'invalid' nodes get updated in package-lock.json but are still listed as invalid bynpm i
npm audit
reports failure.Aftert fresh install with overrides:
After subsequetn
npm i
Expected Behavior
After adding overrides and running npm i, all packages should be overriden even if it's not fresh install.
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: