I have a Centos OS 8 running gcc 8.2. Most time when I try to run the code below, runSource does not return the promise as expected. However, it is lauching a event error that is not catched by the catch statement.
const {cpp} = require('compile-run')
var code = `
#include
using namespace std;
int main() {
cout << "Hello World";
}
`;
cpp.runSource(code,{
timeout : 3000,
compileTimeout : 3000,
stdin : '0',
compilationPath : '/usr/bin/g++'
}).then(res => console.log(res));