You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
I have looked under the hood and the code looks OK. It works on my machine.
But realized that 'cross-spawn-async' has been deprecated for this one https://github.com/IndigoUnited/node-cross-spawn
Start.runSpawnCommand = function runSpawnCommand(cmd, args) {
var q = Q.defer();
var command = cmd + args.join(' ');
var spawn = require('cross-spawn-async');
log.debug('Running exec command:', command);
var spawned = spawn(cmd, args);
spawned.on('error', function(err) {
Utils.fail('Unable to run spawn command' + err);
});
spawned.stdout.on('data', function(data) {
log.debug(data.toString());
});
spawned.stderr.on('data', function(data) {
log.debug(data.toString());
});
spawned.on('exit', function(code) {
log.debug('Spawn command completed');
if (code !== 0) {
return q.reject('There was an error with the spawned command: ' + command);
}
return q.resolve();
});
return q.promise;
};