Compatibility issue
error nuxt@4.0.3: The engine "node" is incompatible with this module. Expected version "^20.19.0 || >=22.12.0". Got "22.3.0"
Is this expected or even known?
5 Replies
Hi @kogratte. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, this is expected and known. Nuxt 4.0.3 requires Node.js version ^20.19.0 or >=22.12.0. Your current Node.js version is 22.3.0, which is lower than the minimum required 22.12.0 for the Node 22.x line. This requirement is enforced to ensure compatibility with Nuxt's dependencies, such as Vite and Nitro, which have also raised their minimum Node.js version requirements. The engines field in Nuxt's package configuration was updated to reflect this, and the CI now validates that the correct Node.js versions are used during installation and builds fix: update engines.node to match dependencies, docs: use node v20 for minimum requirement for nuxt setup, ci: bump node v22.
To resolve this, upgrade your Node.js to at least 22.12.0 (or use a compatible 20.x version).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@639111892144619539> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
No way 22.3 is lower than 22.12. There is something wrong with semver parsing.
@kogratte 3 < 12
My bad.