bugfix : install module doesnt work unless we start the child process into a shell on Windows

This commit is contained in:
Valentin “ThisIsMac” M 2016-07-06 00:38:54 +02:00
parent 4c0ce92547
commit 3b75c46cdb

View File

@ -112,7 +112,8 @@ function installModule(CLI, module_name, cb) {
'install', module_name, '--prefix', cst.PM2_ROOT_PATH, '--loglevel=error'
],{
stdio : 'inherit',
async : true
async : true,
shell : cst.IS_WINDOWS
});
install_instance.on('close', finalize);