方法一:



const child = require('child_process')

child.exec(`${path路径}`, (err, stdout, stderr) => {
console.log(err, stdout, stderr)

})