`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?

Restore node_modules from cache on any CI, then run npm ci

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?

No

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