Try removing node_modules from .gitignore as suggested on SO
Re-ignore node_modules, change package.json