[BUG] npm install -g
doesn't install local dependencies in v7
#2968
Labels
cmd:install
related to `npm install`
Documentation
documentation related issue
Needs Discussion
is pending a discussion
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Release 8.x
work is associated with a specific npm 8 release
Current Behavior:
npm install -g
does not install local dependencies as part of the global install. This appears to be a breaking change between v6 and v7.Expected Behavior:
npm install -g
does install local dependenciesSteps To Reproduce:
package.json
with a dependency:npm install -g
.npm v6
npm v7
Workaround
Running a local
npm install
in the directory (before or after the global install) fixes the issue.Environment:
The text was updated successfully, but these errors were encountered: