Good day everyone,pls is there any alternative way to create react app very fast other than using "npx create-react-app" command? it tooks more than 30 minute before the app would be created whenever i try creating react app with "npx create react app"...
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (5)
May I suggest to try replace
npm
(andnpx
) with pnpm. pnpm (and pnpx) has a better cache system than npm. With pnpm you only download a version of a package once and can reuse it in several projects. In theory the slowest installation ofcreate-react-app
should be the first one, after the cache has all the packages that you need everything should be way faster.You could also try one of these tools
parcel: here is a guide on how to start with react using parcel.
snowpack: here is a video
neutrino: here is the documentation of usage with react.
I think this can also be a performance issue. Using create react app on my end takes only few minutes / seconds. There are a bunch of packets to download which means if you have a slow internet connection it can take some time. Furthermore ram on your machine can also be an issue when running the dev mode. I have had issue deploying on servers with 1G of ram.
I think using Parcel bundler is a good choice. For example, I push the boilerplate to Github and every time I start a new React app, I just clone it and start coding. github.com/djyde/parcel-typescript...
You can first install globally and then initialize your project.
With this, the first install might be similar but next installs will be faster.
The best for me is the React-boilerplate .
react-boilerplate