I am getting error Error: Found invalid Node.js Version: “22.x”. Please set “engines”: { “node”: “18.x” } in your package.json file to use Node.js 18.
When I change the node to 18.x i got error Error: Node.js Version “18.x” is discontinued and must be upgraded. Please set “engines”: { “node”: “22.x” } in your package.json file to use Node.js 22.
Can you share your package.json here? Anything that can you can give us to reproduce this issue?