You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kchindam-infy Can you explain this behaviour a little bit deeper?
I do not understand, why this feature is working as expected - what is the "expected situation" here and why?
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Note: The used dependency is irrelevant.
I have a
child
and aproject
npm project.In my
child
project have the following dependencies:In my
project
project I have this dependencies and an override:When I run
npm i --install-links=true
in myproject
and validating my installed dependencies withnpm list --all
, I only get version 7.x.When I run
npm i --install-links=false
in myproject
and validating my installed dependencies withnpm list --all
, I get version 6.x from my child.Expected Behavior
I was expecting that
overrides
will work also for local dependencies as described in the documentation.I expected that the dependency tree will only have version 7.x for my given dependency.
However, they only work so, when using the
install-links=true
flag.I expected them to work as well with
install-links=false
.Steps To Reproduce
I made also an example project, see https://github.com/rH4rtinger/override_example.
npm install
in it.npm install --install-links=false
.npm list --all
to show the dependency tree.Environment
The text was updated successfully, but these errors were encountered: