From 35f4dcd1bccc3e675855335195b3cbae2fd23c9a Mon Sep 17 00:00:00 2001 From: msojocs Date: Thu, 27 Jan 2022 00:46:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(script):=20=E5=88=9B=E5=BB=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/update-node-node | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/update-node-node b/tools/update-node-node index ceb1d2c..1861f2f 100644 --- a/tools/update-node-node +++ b/tools/update-node-node @@ -42,6 +42,9 @@ const extract = function (localPath) { console.info(`Extracting ${localPath}`); return new Promise((resolve, reject) => { + try { + fs.mkdirSync(path.resolve(__dirname, "../tmp")); + } catch (error) {} let extractPath = path.resolve( __dirname, `../tmp/${path.basename(localPath)}`