devDependencies
of git dependency are missing during prepare
when installing with --prod in main package
#2920
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
Dev dependencies of git dependency are missing during
prepare
in npm v7 (npm v6 works fine) when the main package dependencies are installed using the--prod
flag.Expected Behavior:
If the package being installed contains a prepare script, its dependencies and devDependencies will be installed, and the prepare script will be run, before the package is packaged and installed.
Steps To Reproduce:
Package 1 (main):
Package 2 (git dependency):
Run
npm ci
ornpm i
in main package with prod flag,npm ci --prod
:npm ERR! sh: 1: tsc: not found
==>tsc
should not be missing, as it should come with the typescript devDependency of thegit-dep
Seems to be similar to #1865
Environment:
The text was updated successfully, but these errors were encountered: