I should have untracked everything in the node_modules folder(recursively). I did 'git rm -r --cached node_modules/.'