Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to use create-react-app offline

Tags:

I would like to know if there's a way to use create-react-app offline rather than have it download files from the internet everytime. Doing this, seems like a huge waste of bandwith, and time, as internet speed is very slow and expensive where i reside.

like image 770
Edmund Dantes Avatar asked Jan 21 '20 11:01

Edmund Dantes


2 Answers

Now there is an NPM package for that it called create-react-app-offline Installation :

npm i - g create-react-app-offline

Usage :

crao -n <app-name>

For more informations on GitHub

like image 110
adil zakarya Avatar answered Oct 02 '22 22:10

adil zakarya


Every-time you do npm i, it also checks for updated packages and updates your package.json . The app can be made offline but your node modules will be downloaded ( they are added to git ignore) if you upload them to git.

If net is really an issue there then I'd suggest getting a pen drive or something where you can upload your files and access them without re-downloading

like image 21
Karan Tewari Avatar answered Oct 02 '22 22:10

Karan Tewari