Fixed MeshCMD proxy in action file.

This commit is contained in:
Ylian Saint-Hilaire
2019-03-27 12:55:31 -07:00
parent 3f5062bb53
commit 95fe17df0d
6 changed files with 20 additions and 11 deletions

View File

@@ -1648,7 +1648,12 @@ function InstallModule(modulename, func, tag1, tag2) {
// Looks like we need to keep a global reference to the child process object for this to work correctly.
InstallModuleChildProcess = child_process.exec('npm install --no-optional --save ' + modulename, { maxBuffer: 512000, timeout: 10000 }, function (error, stdout, stderr) {
InstallModuleChildProcess = null;
if (error != null) { console.log('ERROR: Unable to install missing package \'' + modulename + '\', make sure npm is installed: ' + error); process.exit(); return; }
if (error != null) {
console.log('ERROR: Unable to install missing package \'' + modulename + '\', make sure npm is installed: ' + error);
console.log(stdout);
process.exit();
return;
}
func(tag1, tag2);
return;
});