Update index.js

This commit is contained in:
Scoooolzs
2022-05-29 20:32:36 +07:00
committed by GitHub
parent 88dd52cf46
commit 4a267ff22c

View File

@@ -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()
}