Aditya Prakash
Aditya Prakash

Reputation: 59

For nextJS installation npx create-next-app stuck on installation

The create-next-app isn't responding it is stuck midway through the installation with zero installation progress and its been like this for more than 10 mins

enter image description here

can someone pls give a solution for this?

Upvotes: 2

Views: 4457

Answers (6)

Kavindu Vindika
Kavindu Vindika

Reputation: 2747

For me, following command (npx create-next-app@latest) gets stuck after giving project name. Then if I enter, it exists as follows. I encountered this issue in node 20.18.0 and 20.9.0. Afterwards I degrade to node 18.20.4 where I got the same issue again.

enter image description here

Then without @latest, I ran the command (npx create-next-app <project-name>) again with the project name as follows. Then it ran without any issue. For this, I used node 20.18.0.

enter image description here

Upvotes: 0

Sridhar Murali
Sridhar Murali

Reputation: 358

Updating the node version worked for me perfectly

Upvotes: 0

For me I was trying to run it in Git Bash and it would not show the progress bar, stuck on -eslint-config-next. Worked fine when running in VSC terminal.

Upvotes: 1

Ibrahim AlRayyan
Ibrahim AlRayyan

Reputation: 31

I have the same issue and I fixed it updating my Node version, from 14 to 18 (18.16.1

Upvotes: 1

zmayfield
zmayfield

Reputation: 11

Update your node version and theres a good chance it'll start working.

Upvotes: 0

Johan
Johan

Reputation: 113

it happens to me very often too, usually i cancel installation by control + c, and reinstall which works fine

Upvotes: 1

Related Questions