Site deploy fails unless Netlify’s build cache is cleared

Hey @helfi92,
Thanks a ton for sharing everything you’ve tried so far. I believe that clearing the cache with that button in the UI clears your node_modules, so you should be set there. I’d guess that the reason the build works on retry is that we’re installing newer versions of some of your dependencies, though it’s hard to know exactly which ones. If we need to keep debugging after this, it might make sense to check out what we install with the build image:

But let’s try something first! When I take a look at your logs, it looks to me like it fails on:
9:41:17 AM: Error: Cannot find module '@babel/helper-call-delegate'

Looking around, this seems to be a not uncommon problem, including in our own forum:

The most compelling suggestion I see in there is to update babel: npm install @babel/runtime@latest. Do you want to give that a shot and let us know if it fixes things for you?