Can't understand why my Gatsby Build fails: Build script returned non-zero exit code: 2

Hi @o.deangelis

Your build is failing because you are running out of memory:

Please take a look at this article for troubleshooting steps: [Support Guide] What can I do if my build fails for memory-overallocation-related errors?

I hope this helps!

1 Like