How to Fix Node.js Is Not Supported by Astro
Astro says Node.js is not supported and asks you to upgrade? Astro 7.4 needs Node.js 22.23.4 or newer. Here's how to check your version and update it.
Tested on Astro 7.4

This error means your Node.js is too old for Astro. Astro 7.4 needs Node.js 22.23.4 or newer. Run node -v to see what you have. If it’s older, install the newest LTS version from nodejs.org. Then close your terminal, open a new one, and try again.
Why it happens
Node.js is the engine that runs Astro on your computer. Each new Astro needs a fairly new Node.js. If yours is old, Astro stops before it starts.
You may have installed Node.js a long time ago. Or your computer may have two versions, and your terminal is using the old one.
First, we checked our own version. It’s new enough, so Astro worked:
$ node -v
v24.21.0Next, we read Astro 7.4’s own files. The package.json inside Astro says it needs this:
"engines": {
"node": ">=22.23.4"
}
The >= means “this version or newer”. Astro’s install guide says the same. It also says odd-numbered versions, like 23, are not supported.
Last, we read the code that prints the error. It shows these two lines, with your version in place of the X’s:
Node.js vX.X.X is not supported by Astro!
Please upgrade Node.js to a supported version: ">=22.23.4"
How to fix it
- Check your version. Run
node -v. If the number is below 22.23.4, you need a new one. - Install a new Node.js. Go to nodejs.org and download the LTS version. LTS means “long-term support”. It’s the safe choice.
- Close your terminal and open a new one. Your old terminal still remembers the old version.
- Check again. Run
node -v. You should see the new number. - Reinstall your project’s tools. In your project folder, run
npm install. Then runnpm run dev.
Still stuck?
- If
node -vstill shows the old number, you may have two copies of Node.js. Paste the output ofwhich node(Mac) orwhere node(Windows) into an AI. Our guide on fixing Astro errors with AI shows what to say. - Ask in our community. Tell people which version
node -vshows.
Where to go next
- How to fix the most common Astro errors for other errors beginners hit.
- How to fix astro: command not found if Astro still won’t start.
Frequently asked questions
Which Node.js version does Astro 7.4 need?
Version 22.23.4 or newer. Astro's docs also say odd numbers, like 23, are not supported. Pick an even one, like 22 or 24.
How do I check my Node.js version?
Open a terminal and run node -v. It prints a version number, like v24.21.0.
My site builds on my computer but fails on my host. Why?
Your host may use an older Node.js. Look in your host's build settings for a Node version setting, and set it to 22 or newer.
Stuck on a step?
Check the common errors guide, look up a word in the glossary, or ask the friendly people in the official Astro and EmDash Discords. How to ask so people can help.