Typically, node_modules/* is not added to git repositories, since it tends to change and can always be downloaded from npm or other sources.
I would suggest add it to .gitignore and run git rm -r --cached node_modules to remove it from index (while keep it in local directory).