E
E
Evgeny Kucherenko2016-12-16 11:47:11
git
Evgeny Kucherenko, 2016-12-16 11:47:11

Do I need to link git and node folder?

I want to put my project on Github and support it in the future. The folder, thanks to node_modules, weighs 30 MB. Should I clone everything or is there some way to get rid of node_modules?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Robot Chappie, 2016-12-16
@evgenyspace

Package.json will come to your rescue
, which will list all third-party modules, like this

"dependencies": {
    "express": "^4.14.0"
  }

and when we clone the repository, we will execute it npm installand all the modules themselves will be downloaded to the node_modules folder.
read npm documentation

T
Teavocado, 2016-12-16
@yuliyadrobiazka

I use git ignore for node_modules, and if I need to work on the project again, I just re-install the modules and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question