NodeJS execSync(...) output is swallowed



Part of my application relies on a third party program, which is called by using child_process.execSync(command).

The output of the command is assigned to a variable and used later in the application, such as:

var output = execSync(COMMAND);

While this works correctly on my local machines, and other machines, it does not work on the CircleCI container. In fact it would seem that the output is swallowed by a CircleCI process.

Is there a way around this?