loopj/capistrano-node-deploy — pull request #19 by austiniam (2013-08-16 16:12:55+00:00)
Title: removed npm --dev and --production flags

I ran into an issue with the --dev flag that would try and install the devDependencies in a never ending loop until it would eat up all the inodes on our server. It seems others have had this problem as well:

https://github.com/isaacs/npm/issues/3043

https://github.com/killdream/claire/issues/26

This SO article and the Github issue above suggested removing the --dev flag as npm install should install them by default now.

http://stackoverflow.com/questions/9268259/how-do-you-install-development-only-npm-modules-for-node-js-package-json

Upon checking the npm docs it appears both the --dev and --production flags have been removed, so I removed them both. Tested it again and our node deployment now goes through smoothly.