system() you've missed
npm install then-system
system(command, args, opts)
Returns a promise for undefined.
child_process.spawn to spawn the process, and waits for it to exit.
If the process exits abnormally, the promise is rejected with an error.
For clarity, command is allowed to be an array, for cases like
vmadm boot, where
vmadm clearly isn't a very useful description of what command is being run.
This only makes a difference for error reporting.
stderr: stderr output of the process (Buffer)
then, depending on how it exited:
signal: signal that killed the process (string)
'`' + command + '` killed by signal `' + err.signal + '`: ' + err.stderr
code: exit code (integer)
'`' command + '` exited with ' + err.code + ': ' + err.stderr