We use
npm ci
to install dependencies in our Node.js application - this is a fairly recommended way to do it: https://docs.npmjs.com/cli/v10/commands/npm-ci
> This command is similar to npm install, except it's meant to be used in automated environments such as test platforms, continuous integration, and deployment -- or any situation where you want to make sure you're doing a clean install of your dependencies.
But this means that when render stores and recovers the node_modules cache, it is ignored and removed, because ci does a clean install every time. This is both pure overhead for us, in the time to download and upload the cache, as well as wasted work for Render, storing the modules cache.
It would be great if Render provided a way to
not
cache node_modules between deploys.