fix(win32): Allow npm dedupe to error, succeeds anyway

This commit is contained in:
Ben Gotow 2015-11-06 15:47:28 -08:00
parent 9ca4e42b68
commit 1eee97f5d0
2 changed files with 2 additions and 1 deletions

View file

@ -91,6 +91,7 @@ function bootstrap() {
moduleInstallCommand += ' --loglevel error';
dedupeApmCommand += ' --quiet';
apmDedupeOptions.ignoreStderr = true;
apmDedupeOptions.ignoreStdout = true;
buildInstallOptions.ignoreStdout = true;
apmInstallOptions.ignoreStdout = true;

View file

@ -15,7 +15,7 @@ exports.safeExec = function(command, options, callback) {
options.maxBuffer = 1024 * 1024;
var child = childProcess.exec(command, options, function(error, stdout, stderr) {
if (error)
if (error && !options.ignoreStderr)
process.exit(error.code || 1);
else
callback(null);