https://www.npmjs.com/package/auto-install is a fun project: just write require('foo') and foo is automatically installed! Seems like the next logical step.