GitHub has created a repository to answer this kind of questions for several languages/frameworks, including one for NodeJS.
https://github.com/github/gitignore/blob/master/Node.gitignore
Here is the current one for reference :
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
logs
results
build
node_modules