npm ci
and CI cache
#20575
Comments
|
Basically, we'd want Purpose — to use it on CI services like Circle CI. We found that I think the issue could be resolved the other way around — by adding ability for NPM to specify offline modules storage path, like it can do |
Are you concerned about network access or speed? You could tell your CI to cache npm's cache dir, and then use |
About speed.
Hm, didn't know about |
I agree with @ArmorDarks we have the same performace issues with |
I'm opening this issue because:
What's going wrong?
npm ci
remove currentnode_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 runnpm ci
What's the feature?
npm ci
flag which preservesnode_modules
before running installationWhat problem is the feature intended to solve?
In large projects usually it's quicker to restore
node_modules
from cache of previous build and runnpm 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
The text was updated successfully, but these errors were encountered: