From http://stackoverflow.com/questions/9961502/is-there-a-way-to-automatically-build-the-package-json-file-for-node-js-projects
npm init; ls node_modules/ |xargs npm install --save