INNER CODE UNIT · JavaScript

handleRestart

alohe/quicky · index.js:1607

		const handleRestart = async () => {
			try {
				if (
					!fs.existsSync(
						path.join(webhookPath, "node_modules"),
					)
				) {
					log(
						chalk.yellow(
							"node_modules not found. Running npm install...",
						),
					);
					execSync(
						`cd ${webhookPath} && npm install`,
						{ stdio: "inherit" },
					);
				}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…