montagejs / minit

Tool: Helps you build Montage applications by generating template applications and components for you.
Other
8 stars 22 forks source link

Run npm installing a child process #49

Closed mczepiel closed 11 years ago

mczepiel commented 11 years ago

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

francoisfrisch commented 11 years ago

tested locally