Steps to Reproduce:
- npm i (for first time)
- npm ci
- npm prune --production => After pruning, it runs
postinstallwhich is breaking the
jenkins ci buildbecause in some modules (fetched from github), postinstall script is using dev-dep like babel which won’t be available after pruning. So, eventually
npm prune --productionalso fails.
But, if i remove step 2, then no issue. pruning works fine.
Node Version: 8.12.0
Npm Version: 5.10.0
It’s happening in Npm version 6.8.0 too.
I wasn’t expecting postinstall to run after pruning.
Any idea why is it happening?