What / Why
I know this question was asked a handful of times, and I probably have an idea on why that is.
But still, imagine you have a package «A» and it depends on a local package «B», that depends on a package «C».
When I do npm install ../B from package «A», I expect npm to add package «C» to node_modules of a package «A». It is not the case.
yarn add ../B however does add package «C» to node_modules of package «A».
I don't think it's relevant but:
- npm version: 6.12.1
- OS: macOS Catalina (10.15.2)
References
npm/npm#13734
npm/npm#20835
Thank you for your work ❤