The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
`npm ci` and CI cache
Taken from https://github.com/npm/npm/issues/20575
What’s going wrong?
npm ci remove current
node_modules , thus making CI’s caching usage impossible.
How can the CLI team reproduce the problem?
node_modules from cache on any CI, then run
What’s the feature?
npm ci flag which preserves
node_modules before running installation
What problem is the feature intended to solve?
In large projects usually it’s quicker to restore
node_modules from cache of previous build and run
npm install based on it.
Is the absence of this feature blocking you or your team? If so, how?
No, it doesn’t. It just hurts.
Is this feature similar to an existing feature in another tool?
Is this a feature you’re prepared to implement, with support from the npm CLI team?
I’m not sure I’m capable to do it