方法一:
const child = require('child_process') child.exec(`${path路徑}`, (err, stdout, stderr) => { console.log(err, stdout, stderr) })
方法二:
參考1:https://blog.csdn.net/summer721066/article/details/107856662
參考2:https://cloud.tencent.com/developer/ask/87564
參考3:nodejs call external exe and wait for output:https://stackoverflow.com/questions/34538825/node-js-call-external-exe-and-wait-for-output