If any of the child processes produces an error during its spawning (i.e., by some command not being installed), they will emit an error which will crash Node.js with an "unhandled error event" message.
Instead, these errors should be re-emitted so that the returned object can be used to handle them. This will help to provide users with a nice message requesting them to install the particular package or, in case of a server, return an actual HTTP error.
If any of the child processes produces an error during its spawning (i.e., by some command not being installed), they will emit an error which will crash Node.js with an "unhandled error event" message.
Instead, these errors should be re-emitted so that the returned object can be used to handle them. This will help to provide users with a nice message requesting them to install the particular package or, in case of a server, return an actual HTTP error.