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) => {