Failed to Build, Gatsby Upgrade

I am getting the following error message when Netlify tries to build and deploy my website. I upgraded from Gatsby v2 to v5 and it runs fine locally. However, when I push the Github repo Netlify is supposed to deploy automatically, this is the error message I am getting:
Screenshot 2023-02-10 at 11.31.51 AM

what is your site name or slug?

I fixed it, and everything is newest version now. However I needed to add a custom Netlify Environment Variable to use Node v18. Without that it wouldn’t build. Do you know why this custom Netlify Environment Variable would be required to run Gatsby?

Gatsby 5 needs Node 18, Netlify uses Node 16 by default.

Hi, thank you for the reply. Oh OK, just curious but do you know when Netlify will upgrade to Node 18 (LTS version) by default? Wondering if there is a reason for Netlify to wait to upgrade the default LTS version.

There is no timeline (at least that i’m aware of) where this will be the default. When we know we will update this thread or make a post on the forums. Stay tuned.