Your Node is older than the frontend needs
Next.js declares a minimum Node version in its engines field, and the one on PATH is below it.
The fix
Terminal
$fnm install 22 && fnm use 22# or$nvm install 22 && nvm use 22
Set it as the default too, or a new terminal goes back to the old one: fnm default 22, or nvm alias default 22.
Why it happens
The unpleasant part of this one is when it surfaces. An install with an old Node often succeeds with a warning, and the failure arrives later during the build, as an error that does not mention Node at all.
If you have several projects on different versions, put a .nvmrc or .node-version in each and let the manager switch for you on cd.
How to tell it worked
Terminal
$node --version$grit doctor --env
Still stuck? The troubleshooting page covers more, and the errors guide lists every message with its cause. Running grit doctor --env checks this machine for all of them at once.
