[BUG] npm install includes transitive devDependencies for file: dependencies when install-links=false #6405
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm install includes transitive devDependencies for file: dependencies when install-links=false.
If install-links=true it does not include the transitive devDependencies.
This behavior started with npm 7, npm 6 and earlier did not include transitive devDependencies for file: dependencies.
Expected Behavior
npm install should not include transitive devDependencies for file: dependencies, regardless of what value install-links has.
Steps To Reproduce
package.json
should look like this:b/package.json
should look like this:The resulting
package-lock.json
files will look like this:npm 9 (install-links=false):
npm 9 (install-links=true):
npm 8:
npm 7:
npm 6:
Environment
The text was updated successfully, but these errors were encountered: