child.stderr.on('data', chunk => {
        stderr += chunk.toString();
        output += chunk.toString();
        process.stderr.write(chunk);
      });