From 4a267ff22cefff9b4056b33c8bd24cddc4338b6c Mon Sep 17 00:00:00 2001 From: Scoooolzs <84376629+Scoooolzs@users.noreply.github.com> Date: Sun, 29 May 2022 20:32:36 +0700 Subject: [PATCH] Update index.js --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1e56344..043a589 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,10 @@ if (fs.existsSync('./node_modules')) { } } else { console.log("You are not installing package first, please wait until Auto Installer complete.") - child.execSync("npm i") + child.execSync("npm i").catch((err) => { + console.log("An error detected: ", err) + console.log("If you want") + }) console.log("Auto Installer complete! Please re run this bot!") process.exit() }