Depends on the project, if the project requires the npm stuff to work, i put it in the project gitignore, if its developer specific, i put it in the global