[BUG] npm install -g
includes devDependencies in v7
#2969
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
npm install -g
includesdevDependencies
as part of the global install. This appears to be a breaking change between v6 and v7. Might be related to #2968.Expected Behavior:
npm install -g
does not includedevDependencies
.Steps To Reproduce:
package.json
with both a dependency and a devDependency:Run
npm install --prod
to install prod dependencies. Required in npm v7 due to [BUG]npm install -g
doesn't install local dependencies in v7 #2968.Run
npm install -g
.npm v6
npm v7
Environment:
The text was updated successfully, but these errors were encountered: