[BUG] prepare
script is ignored after npm install
under production env
#2152
Labels
prepare
script is ignored after npm install
under production env
#2152
Current Behavior:
npm install
under "production" environment does not runprepare
lifecycle hookExpected Behavior:
prepare
script should be invoked at all timesAt the very least, the documentation should be updated to reflect this surprising/counter-intuitive behavior. Presently there is no hint that prepare-script behavior varies based on environment.
Steps To Reproduce:
"prepare": "echo hi"
npm i --production
orNODE_ENV=production npm i
Environment:
The text was updated successfully, but these errors were encountered: