[BUG] overrides in packages not honoured at the top level #5914
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
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
Hello,
I've been doing quite a bit of searching, I think what I have here is a bug... although happy to be told otherwise.
What i'm observing is that if a package we depend on specifies an
overrides
section, then it is ignored when we install that package.So take the following hierarchy as an example (which is our exact use case):
In
our-internal-package
we have:When working on
our-internal-package
, doing annpm ls --tree
correctly shows the override at2.0.0
.However when we install
our-internal-package
intoour-application
, the override appears to be ignored, and the latest version ofsome-public-package-dependency
is installed (2.1.0).some-public-package
references that with:^2.0.0
.Expected Behavior
nested overrides to be honoured in the installation tree
Steps To Reproduce
see current behaviour. happy to build a small app to demonstrate this if the info above is not sufficient, and the behaviour is confirmed to be a bug.
Environment
Versions:
The text was updated successfully, but these errors were encountered: