#Don't Add Your node_modules to git / github.
####Follow the instructions to not do this.
First and foremost you should be initializing NPM with npm init when you start a new node project.
If you aren't doing this now, you need to start immediately.
Secondly, you should be installing your node packages for your project using npm install <package name> --save
If you aren't doing this now, you need to start immediately.
Now -- Follow these steps to make git ignore your node_modules folder.
-
Create a
.gitignorefile in the root of your repo. -
Open that file and place the following line in it:
node_modules
-
Save that file.
-
Add, commit, and push the branch.
If you look in your repo and see a node_modules folder after following these steps and setup, you've done something wrong.