From 33262c4ef431c182dca8d3cbbb3356d0dadb4dae Mon Sep 17 00:00:00 2001 From: MemoryNoodles <729804002@qq.com> Date: Wed, 27 Mar 2019 16:35:41 +0800 Subject: [PATCH] =?UTF-8?q?execFile=E6=96=B9=E6=B3=95=E5=9C=A8win10x64?= =?UTF-8?q?=E6=89=A7=E8=A1=8Cdoxmate-build=E5=87=BA=E9=94=99=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/doxmate | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/bin/doxmate b/bin/doxmate index 938f1f3..ddbaca4 100755 --- a/bin/doxmate +++ b/bin/doxmate @@ -61,10 +61,17 @@ if (fs.existsSync(local)) { // execute command var options = {maxBuffer: 1024 * 1024}; -execFile(local, args, options, function (err, stdout) { - if (err) { +execFile("node", [local], function (err, stdout) { + if (err) { console.error(err); return; - } - console.log(stdout); + } + console.log(stdout); }); +// execFile(local, args, options, function (err, stdout) { +// if (err) { +// console.error(err); +// return; +// } +// console.log(stdout); +// });