From 496a9500a7c877201083aa32bdd591a28707586b Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 16 Sep 2018 03:04:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20patch=20install=20failure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/installation/launch.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ssn/installation/launch.ts b/src/ssn/installation/launch.ts index 53ae875..bb0c1db 100644 --- a/src/ssn/installation/launch.ts +++ b/src/ssn/installation/launch.ts @@ -31,11 +31,14 @@ export default function launchProcess( const spawnedProcess = childProcess.spawn(processPath, parameters.map((value) => value.toString(), { cwd: '.' })); if (typeof output === 'string') { - //TODO: output stdout to console just in case for error logging + spawnedProcess.stdout.setEncoding('utf8'); + spawnedProcess.stdout.on('data', (chunk) => { + console.log(chunk); + }); } else { spawnedProcess.stdout.pipe(output); - spawnedProcess.stdout.on('end', resolve); } + spawnedProcess.stdout.on('end', resolve); spawnedProcess.stderr.setEncoding('utf8'); spawnedProcess.stderr.on('data', (error) => {