Zaras
Zaras

Reputation: 1

Moving react app created with create react app to another computer

I used Create React App to create a React application on one computer. No problem. But how do I move the code to another computer (i.e. the entire folder structure) if I want to continue developing on another computer. I have node installed and I have installed Create React App on the second computer (with the -g tag, etc. But just moving the react application folders over to the second computer doesn't seem to work. That is, npm start fails. Any ideas? It must be that I have to do something to the app on the second computer with Create React App. What is it that I have to do? I want to preserve and use my code on this second computer and continue developing (moving from Windows to Mac). Thanks.

Upvotes: 0

Views: 4930

Answers (3)

Jonathan Ogwumike
Jonathan Ogwumike

Reputation: 1

Git is your easiest solution. Upload to git hub from the current laptop. Then on the new laptop, download the file (zip) and run npm install. Once everything works locally you can publish to a new branch on github in the initial repository.

Upvotes: 0

Antony James
Antony James

Reputation: 19

Use git. you can use git to upload project, then unload project on a second computer, create a branch and continue working. After unloading, you need to run the npm install command.

Upvotes: -1

sunandan
sunandan

Reputation: 41

there are some ways to copy your project to another computer

  1. use git: you can use git hub to push your react project into a repository then you can clone that repository on another computer. note: use npm install after cloning the repository on another computer as it doesn't include node modules

  2. share a compressed file: you can compress your react app folder and transfer it to another computer extract it to use it

Upvotes: 2

Related Questions