Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with running Nextjs app. Stopped immediately after started

I have install Nextjs app. But could not started the app. Its stopped immediately. My terminal shows below like -

PS D:\Nextjs\MyApp> npm run dev

> dev
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000

PS D:\Nextjs\MyApp> 

I have checked node version or folder structure. Its OK. My system is 32 bit, windows 10.

I have uninstall node then again install. Manually setup nextjs. Tried js and ts separately. But nothing work. In my machine I have successfully build MERN or Nest app.

like image 323
Monir U Zaman Avatar asked Nov 01 '25 07:11

Monir U Zaman


2 Answers

I apparently had the same issue almost at the same time. I was trying to npm run dev a NextJS app from scratch using npx create-next-app.

For me when I upgraded the node version it started working again. I was running a 14.x.x node version and NextJS 13.2.3 when the issue occurred to me.

Now I am running node 18.14.2 LTS and NextJS 13.2.3 and the command npm run dev is running as expected.

like image 149
Amirth Avatar answered Nov 02 '25 21:11

Amirth


Downgraded from Nodejs 18.15.0 to 18.14.2 and it works fine now.

like image 36
Saif eldeen Adel Avatar answered Nov 02 '25 22:11

Saif eldeen Adel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!