Узел Spawn Bash Catch Errors

const bashOut = spawn('bash', [script, param]);

  bashOut.on('error', (error) => {
    console.log('Bash error: ', error);
  });
Cheerful Corncrake