$parm
我想在下面的var path = "/home/"
var child = require("child_process").spawn(path, ['./nameOfBinary ', arg1], {
stdio: ['ipc'] //enable ipc channel
}
);
child.stderr.on("data", function (data) {
console.log("Error occured while executing the jar: \n" + data.toString());
reject(data.toString);
});
child.on('exit', code => {
console.log('Jar executed successfully.');
resolve();
});
child.stdout.on('data', (data) => {
console.log(data.toString());
});
中运行二进制文件。但这会引发我无法调试的错误。
说path
如何找到错误的根本原因?我想念什么?