create-react-app taking forever to run
See original GitHub issueI 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:
- Created 3 years ago
- Reactions:12
- Comments:14 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can confirm same is happening to me on a windows 10 machine
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