Edmund Dantes
Edmund Dantes

Reputation: 51

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

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.

Upvotes: 5

Views: 11411

Answers (3)

Krunal Kaneria
Krunal Kaneria

Reputation: 11

I found a npm package called create-react-app-offline which initializes the react project offline. And I checked it myself. Here's the link

Create React App Offline Package

Just install it globally and run the crao -n <app_name>

Upvotes: 0

adil zakarya
adil zakarya

Reputation: 220

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

Upvotes: 6

Karan Tewari
Karan Tewari

Reputation: 508

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

Upvotes: 1

Related Questions