From 768733771488bdc8d5d5354bc64ba94329c3ee2a Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Thu, 17 Nov 2016 10:04:55 -0600 Subject: [PATCH] fix(): when spawning npmScripts ensure that stderr is piped correctly --- lib/utils/npmScripts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils/npmScripts.js b/lib/utils/npmScripts.js index 999c6b05d0..5b786a01aa 100644 --- a/lib/utils/npmScripts.js +++ b/lib/utils/npmScripts.js @@ -25,7 +25,9 @@ function runIonicScript(name, argv) { var q = Q.defer(); process.env['FORCE_COLOR'] = true; - var scriptSpawn = spawn('npm', ['run', scriptName, '--'].concat(argv || []), [process.stdin, 'pipe', process.stderr]) + var scriptSpawn = spawn('npm', ['run', scriptName, '--'].concat(argv || []), { + stdio: [process.stdin, 'pipe', process.stderr] + }) .on('error', function(err) { log.debug('Spawn command', scriptName, 'failed'); q.reject('Unable to run spawn command ' + err);