Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ps.stderr.setEncoding('utf8').on('data', data => {
if (npmClient === 'pnpm') {
stderrLogs = data
} else {
stderrLogs += data
}
spinner.stop()
logUpdate.clear()
logUpdate.stderr(stderrLogs)
logUpdate(stdoutLogs)
spinner.start()
})