[BUG] Invalid packages when scoped overrides are used butby a different package #7087
Labels
Bug
thing that needs fixing
config:overrides
Issues dealing with the overrides feature
Priority 2
secondary priority issue
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm install gives invalid
package-lock.json
when scoped overrides are used but project contains another dependency that uses it.npm ls doesn't even show the culprit.
Expected Behavior
npm install should not give invalid packages when scoped overrides are used but project contains another dependency that uses it.
npm ls should be able to find and list the offending the package.
Steps To Reproduce
npm install
.npm ls tough-cookie
:Notice the errors but there is no mention of lerna.
4. Remove lerna 4.0 or change it to lerna 5.0 which doesn't use request and repeat above steps. Notice there are no issues this time.
Environment
The text was updated successfully, but these errors were encountered: