2

When I run a git clone command using child_process.exec it outputs to stderr instead of stdout

const proc = child_process.exec(bashCommand, { cwd }); proc.stdout.on("data", data => { debug && console.log(data); outputCB && outputCB(data); }); proc.stderr.on("data", data => { debug && console.error(data); // THIS FIRES errorCB && errorCB(data); }); 

How do I get it to output non-errors to stdout while still outputting REAL errors to stderr

1

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.