Caching too aggressive?

I have to “Clear Cache and Deploy Site” on every single build.

https://generator-tsx.netlify.com/

I’m getting a bunch of errors that look mostly the same, something like this:

1:20:51 PM: npm
1:20:51 PM:  WARN
1:20:51 PM: tar ENOENT: no such file or directory, open '/opt/build/repo/node_modules/.staging/fast-glob-b5e6c30f/out/providers/async.d.ts'

These warnings appear to have nothing to do with my build. No idea what’s causing them and they don’t appear after clearing cache.

Hi @jedmao,

Everything in your node_modules directory is installed because of a dependency you are installing (usually because you have it in your package.json). I do see that your latest deploys (https://app.netlify.com/sites/generator-tsx/deploys/5d3229855b2126000874f1d8) are using cache and building successfully. Did you fix the problem?