mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(win32): Allow npm dedupe to error, succeeds anyway
This commit is contained in:
parent
9ca4e42b68
commit
1eee97f5d0
2 changed files with 2 additions and 1 deletions
|
@ -91,6 +91,7 @@ function bootstrap() {
|
|||
moduleInstallCommand += ' --loglevel error';
|
||||
dedupeApmCommand += ' --quiet';
|
||||
|
||||
apmDedupeOptions.ignoreStderr = true;
|
||||
apmDedupeOptions.ignoreStdout = true;
|
||||
buildInstallOptions.ignoreStdout = true;
|
||||
apmInstallOptions.ignoreStdout = true;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue