montagejs/minit — pull request #49 by mczepiel (2013-08-14 01:10:43+00:00)
Title: Run npm installing a child process

This completely skirts trying to fix the issue in npm where multiple
calls to load don't yield correctly configured instances of npm for use
through the programmatic API.

i.e. minit create can now be run multiple times in the same process
and correctly install the expected node_modules in each configured
location.

I have hopes that this will be fixed someday in npm so I haven't
completely changed the way we configure npm prior to executing the
command.

The exec promise/subprocess wrapper is provided by @stuk