When i create next js app using cli, an then i type
npm run dev
I got this error.
You are using Node.js 16.20.2. For Next.js, Node.js version >= v18.17.0 is required.
But my node version is v20.10.0. How I fix this.
Solve this issue.
You are using Node.js 16.20.2. For Next.js, Node.js version >= v18.17.0 is required.
system
in your nvm list and see if that matches. If it does then you can uninstall it and try again, but do so in a new terminal to ensure your PATH is updated. Either way, the core of the issue here is your PATH order. Next is picking up Node from the first location it finds it, so to troubleshoot, you'll want to find out where that location is. – Warlike