Verify Node.js versions: Check available versions here to ensure you are using a compatible version for your Next.js project.
Install and use the correct version with nvm
: Using nvm
allows you to switch between Node.js versions easily, ensuring compatibility with different projects. Run the following commands to install and use the correct version:
nvm install 22.5.1
nvm use 22.5.1
Re-run your development server: After switching versions, run your project again:
npm run dev