The issue with caching `node_modules` is that it can break across node versions, OS versions, and wo

The issue with caching
node_modules
is that it can break across node versions, OS versions, and won't work with npm ci since npm ci always nukes
node_modules
first. You want to cache the npm cache result, which is ~/.npm unless you're overriding the npm cache location.
Was this page helpful?