From 087d34071f01a398c00d54c51c3d4ad6f54fe480 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 17 Jun 2022 14:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BC=82=E6=AD=A5=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E5=AF=B9=E5=BC=82=E5=B8=B8=E7=9A=84=E6=8D=95=E8=8E=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/exec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/exec.js b/src/tools/exec.js index 273dfca..1054fbf 100644 --- a/src/tools/exec.js +++ b/src/tools/exec.js @@ -13,5 +13,8 @@ const execute = cmd => new Promise((resolve, reject) => { pid.stdout.on('data', data => { console.log(data) }) + pid.stderr.on('data', data => { + console.log(data) + }) }) module.exports = execute