New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx create-react-app #13562
Comments
use vite |
Have you tried running it on wsl2? |
Horror, advice like “reinstall windows” |
Change to vite; npx is not an faster one, tbh https://www.linkedin.com/pulse/exploring-npx-create-react-app-vs-vite-choosing-right-amitha-h-hp4yf/ |
Reinstalling won't solve this, npx cra is slow af since it uses webpack, and bundles the application before it makes ready to listen. |
There is no benchmark in your link, how much faster is 1%? by 2% by 10? some facts are needed, confirmed I waited about 6 minutes and the installation went through npx, it just took a long time, but it was completed successfully |
Simply speaking, vite is quicker because it uses module preloading to achieve a faster build. Read on to better understand with graphs: https://kinsta.com/blog/vite-vs-webpack/. More thorough explanations can be obtained. Trust me, I was using npx cra Then, after switching to vite, production build and deploy times rose, as I saw. |
there is a link to compare VITE with WEBPACK, and we are talking about npx (NPX stands for Node Package eXecute. It is simply an NPM package runner) |
Well, I indeed know what npx is, since cra (create-react-app) uses webpack and NPX (Node package eXecute) runs the cra to initiate the app, it is mentioned as WEBPACK, basically it means the NPX. If you wish, you can just initiate two new apps using vite and npx and watch which one builds quicker. |
npx create-react-app This command is working very slowly Give me any Solution this problem
The text was updated successfully, but these errors were encountered: