#Next.js npm run dev hangs with no error output on Node.js 22

1 messages · Page 1 of 1 (latest)

wheat wedge
#

I am running a Next.js app with the command npm run dev, but the development server just hangs without any errors. The terminal output shows only:

and then stays stuck. The server never starts fully (no localhost URL is shown) and there are no error messages.

Environment:

Node.js version: v22.11.0

npm version: 11.5.1

Next.js version: 15.4.5

React and ReactDOM version: 19.1.0

I need help , I have tried deleting node modules , cleaning cache still I am stuck with this issue

glass acornBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

wheat wedge
#

/bump

idle cradle
#

I had this same issue when i ran two next servers at the same time.
One was using port 3000, and the other was supposed to use 3001, but for some reason, it just froze.
Sometimes, it'll show compiling and just freeze.

wheat wedge
#

what's the solution??

idle cradle
#

Twas weird.
I ended up killing the first server, and ran the other next server on a new instance of my terminal.
And it worked.

wheat wedge
#

How to do that

#

because it is working fine is production

#

but in developer mode it keeps showing me that

#

I haven't worked on any next app before

#

It is my first time learning next

idle cradle
#

Try opening the folder in command prompt.
Then run the command again.
It could be a vs code bug

wheat wedge
#

I will let you know once I do that

#

but I have literally tried everything

#

installed the latest node version

#

deleting node moduled

#

creating next app again and again

idle cradle
wheat wedge
#

yeah the same issue with cmd

#

@idle cradle

idle cradle
#

This is weird.

#

Create a new separate next project and try to run it.
Let's see if the issue is from the project or something else.

wheat wedge
#

You want me to create in new directory or at the same location

#

As I have tried creating new next projects at the same location

idle cradle
wheat wedge
#

What do you mean by run?

#

When I do npx create-next-app@latest there are no errors

#

@idle cradle

idle cradle
wheat wedge
idle cradle
#

Okay, so it's not an issue with the project.

#

Try restarting ur laptop.

wheat wedge
#

restarting doesn't work

wheat wedge
#

/bump

flat fable
tranquil raptor
#

I would try using WSL instead. It’s known that nextjs has had issues running on windows

wheat wedge
#

what's WSL?

#

linux?

wheat wedge
#

@flat fable

flat fable
wheat wedge
#

/bump

polar delta
#

Update your node version

wheat wedge
wheat wedge
#

/bump

tranquil raptor
wheat wedge
#

/bump

inner tree
#

I have the same issue please lmk if you know how to fix it