running next dev - the server starts briefly and then closes.
> next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
and then it exits. I'm using windows Screenshot of the CLI
I used this command as of today
npx create-next-app@latest
and updating node stable version 18.14.2 + additional features while installing , and installing windows WSL since the docs mention this
System Requirements
Node.js 14.6.0 or newer
MacOS,>>>>>>>> Windows (including WSL) <<<<<<<<, and Linux are supported
i've tried localhost:3000 on the browser while the server was "Up" and kept refreshing with no response
tried to update node
deleted node_modules then did npm i still the same problem.
installed windows WSL
how do i make this work ?
Installing the latest version of nextjs resolved my issue:
npm install next@latest react@latest react-dom@latest
Date: 18 March 2023
☠️I also faced the same problem after creating the app using the latest version of nextjs.
And I couldn't solve it even after spending a lot of time 😒
✅Later I install the old version of nextjs and the server starts successfully and doesn't stop automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With