mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +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';
|
moduleInstallCommand += ' --loglevel error';
|
||||||
dedupeApmCommand += ' --quiet';
|
dedupeApmCommand += ' --quiet';
|
||||||
|
|
||||||
|
apmDedupeOptions.ignoreStderr = true;
|
||||||
apmDedupeOptions.ignoreStdout = true;
|
apmDedupeOptions.ignoreStdout = true;
|
||||||
buildInstallOptions.ignoreStdout = true;
|
buildInstallOptions.ignoreStdout = true;
|
||||||
apmInstallOptions.ignoreStdout = true;
|
apmInstallOptions.ignoreStdout = true;
|
||||||
|
|
|
@ -15,7 +15,7 @@ exports.safeExec = function(command, options, callback) {
|
||||||
options.maxBuffer = 1024 * 1024;
|
options.maxBuffer = 1024 * 1024;
|
||||||
|
|
||||||
var child = childProcess.exec(command, options, function(error, stdout, stderr) {
|
var child = childProcess.exec(command, options, function(error, stdout, stderr) {
|
||||||
if (error)
|
if (error && !options.ignoreStderr)
|
||||||
process.exit(error.code || 1);
|
process.exit(error.code || 1);
|
||||||
else
|
else
|
||||||
callback(null);
|
callback(null);
|
||||||
|
|
Loading…
Reference in a new issue