-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] NPM Install includes transitive devDependencies for file: dependencies. #492
Comments
This behavior seems like leads to 2 instances of React (of different versions) in my app. Is there any known way to work this around? |
It also breaks npm v6.14.5 |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
What / Why
If you have a file reference dependencies like
{ "dependencies": { "a": "file:../a" } }
, when younpm install
the transitivedevDependencies
of the package will be installed and added to yourpackage-lock.json
.When
When you include a
depnedency
as afile
reference when it has a transitivedevDependency
.Where
NPM CLI
How
Current Behavior
<root>/b/package-lock.json
will look like:Steps to Reproduce
<root>/a/package.json
<root>/b/package.json
Expected Behavior
<root>/b/package-lock.json
should look like this:Who
References
The text was updated successfully, but these errors were encountered: