question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create-react-app taking forever to run

See original GitHub issue

I recently started out with react and whenever I run npx create-react-app my-app, a my-app directory is created with just a package.json file, nothing else, and the command stops on the terminal as:

npx: installed 98 in 135.321s

Creating a new React app in C:\Users\me\Desktop\Projects\react_project\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

It just gets stuck here and nothing happens then.

I am on a Windows 10 machine.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
AhmedKhattakcommented, Jul 30, 2020

Can confirm same is happening to me on a windows 10 machine

2reactions
KennStack01commented, Feb 14, 2021

Remove global create-react-app package, if you have it installed globally. npm uninstall -g create-react-app

Install/update react and react-dom globally npm i -g react react-dom

Then try setting up the react app: npm init react-app my-app

I tried this method and it took 10~15 minutes

Read more comments on GitHub >

github_iconTop Results From Across the Web

npx create-react-app takes too long every time - Stack Overflow
I am new to React. Whenever I use npx create-react-app, it takes too long to download all the packages like "react, react-dom and ......
Read more >
Create-react-app takes so much time - JavaScript
create -react-app takes about 12 minutes on my slow laptop and two or three minutes on my new i5 desktop. You might find...
Read more >
npx create-react-app takes too long : r/reactjs - Reddit
It is faster, but npm run still takes some minutes to process.
Read more >
[Solved]-npx create-react-app takes too long every time-Reactjs
You might use local cache for npm packages. There is an open source cache, should be relatively straightforward to use. Install the cache...
Read more >
Is it required to run (npx create-react-app my-app) every time ...
Yes, it is compulsory to run npx-create app as it set up your project file. It downloads all components, node_modues which you required...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found