I believe it's best not to add node_modules to a git repository, as someone can install those modules with npm and the package.json file. So how do I add all my project files to the working directory without the node_modules folder? Thank you!
Asked
Active
Viewed 3,521 times
3
-
Related: https://stackoverflow.com/questions/29820791/git-ignore-node-modules-folder-everywhere – jarmod Aug 29 '18 at 23:40
1 Answers
7
Create a .gitignore file in the root directory of your repo and type in node_modules into that file. Save it, add it to the repo and commit it.

klewis
- 7,459
- 15
- 58
- 102