I have several simple React projects that I have built using create-react-app on Windows 10 and wish to transfer them to my Linux development system. I don't think it's as simple as zip and unzip. Can someone suggest the appropriate way to do this? Or should the above mentioned zip/unzip work? Thanks in advance.
Asked
Active
Viewed 1,001 times
1
-
Have you ever used `git`? – Alserda Apr 23 '20 at 10:58
-
Yes Alserda I have used git – D Turner Apr 23 '20 at 11:19
-
Have you tried pushing your project to git, pulling it on your Linux machine and running `npm install` to get your dependencies? – Alserda Apr 23 '20 at 11:20
-
No I haven't tried that, but I will do and will let you know the result, thank you. – D Turner Apr 23 '20 at 11:22
-
1Hi Alserda, I didn't need to use git after all, it seems I only needed to re-install the dependencies as you suggested using 'npm install' ( after unzipping my projects ). If you can make a formal answer I will gladly accept it. Thank you so much for your help and input. – D Turner Apr 24 '20 at 16:32
1 Answers
1
As long as you get the source code over, anything is fine really. A recommended way of doing that is transferring everything except for the node_modules
folder, as running npm install
can install OS-specific dependencies as well.

Alserda
- 4,246
- 1
- 17
- 25