We've seen issues whereby npm prune --production on NPM 8 running inside mock (with no internet access) fails because its trying to resolve dev dependencies. The fix for this would be to change to npm prune --omit=dev which would stop trying to resolve dev dependencies. However some users of speculate use NPM 6, which does not support --omit=dev.
We've seen issues whereby
npm prune --production
on NPM 8 running inside mock (with no internet access) fails because its trying to resolve dev dependencies. The fix for this would be to change tonpm prune --omit=dev
which would stop trying to resolve dev dependencies. However some users of speculate use NPM 6, which does not support--omit=dev
.According to https://docs.npmjs.com/cli/v8/commands/npm-prune and https://docs.npmjs.com/cli/v6/commands/npm-prune, setting
NODE_ENV=production
will have the same effect as--omit=dev
on NPM 8 and--production
on NPM 6 respectively.