Free Astro tutorials for complete beginners.

Beginner's Guide to Astro

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

Cover image for How to Fix Node.js Is Not Supported by Astro
In this guide
  1. Why it happens
  2. How to fix it
  3. Still stuck?
  4. Where to go next
  5. Frequently asked questions

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:

Terminal
$ node -v
v24.21.0

Next, 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

  1. Check your version. Run node -v. If the number is below 22.23.4, you need a new one.
  2. Install a new Node.js. Go to nodejs.org and download the LTS version. LTS means “long-term support”. It’s the safe choice.
  3. Close your terminal and open a new one. Your old terminal still remembers the old version.
  4. Check again. Run node -v. You should see the new number.
  5. Reinstall your project’s tools. In your project folder, run npm install. Then run npm run dev.

Still stuck?

  • If node -v still shows the old number, you may have two copies of Node.js. Paste the output of which node (Mac) or where 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 -v shows.

Where to go next

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.

Keep reading

  1. How to Register a Domain Name and Connect It to Your Astro Site

    Buy a domain for about $11 a year, then point it at Cloudflare or Netlify. We did this for astronursery.com, and these are the exact steps.

    Tutorials, 8 minute read, November 8, 2026

  2. How to Add Google Analytics to an Astro Site (and a Simpler Option)

    Paste Google's tag into your Astro layout with one small change, is:inline, and it works on every page. Or use Cloudflare Web Analytics, which needs no cookie banner.

    Tutorials, 6 minute read, November 8, 2026

  3. How to Add a Contact Form to an Astro Site (No Server Needed)

    A static site can't receive form submissions on its own. A free form service can. Here's a working contact form in ten lines, with spam protection built in.

    Tutorials, 7 minute read, November 8, 2026

Try "blog", "deploy" or "EmDash".