From 9a8cead956f7b1e39d4251953b91e704d8270b64 Mon Sep 17 00:00:00 2001 From: zgy-ian Date: Sat, 11 Sep 2021 09:38:40 +0800 Subject: [PATCH] Modify the path name in the npm-install.js Signed-off-by: zgy-ian --- compiler/npm-install.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/npm-install.js b/compiler/npm-install.js index fb691ef30..32ae7ec45 100644 --- a/compiler/npm-install.js +++ b/compiler/npm-install.js @@ -26,11 +26,11 @@ if (!fs.existsSync(arkDir)) { let isWin = !1; let isMac = !1; -if (fs.existsSync(path.join(arkDir, "build"))) { +if (fs.existsSync(path.join(arkDir, "build-win"))) { isWin = !0; -} else if (fs.existsSync(path.join(arkDir, "build-win"))) { +} else if (fs.existsSync(path.join(arkDir, "build-mac"))) { isMac = !0; -} else if (!fs.existsSync(path.join(arkDir, "build-mac"))) { +} else if (!fs.existsSync(path.join(arkDir, "build"))) { throw Error("Error: find build fail").message; } -- Gitee