From 69f184772ab5a20e862bb78242d871cd57c05d08 Mon Sep 17 00:00:00 2001 From: Minh-Phuc Tran <25026967+phuctm97@users.noreply.github.com> Date: Sun, 3 Jul 2022 17:06:14 +0800 Subject: [PATCH] fix: print hangon messages only every 20s --- src/utils/install-dependencies.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/install-dependencies.ts b/src/utils/install-dependencies.ts index d8f38ba..c814d06 100644 --- a/src/utils/install-dependencies.ts +++ b/src/utils/install-dependencies.ts @@ -6,8 +6,10 @@ export async function installDependencies( projectDirectory: string ): Promise { const internal = setInterval(() => { - console.log("Hang on, packages are still being installed…"); - }, ms("5s")); + console.log( + "Hang on, packages are still being installed, your connection may be a bit slow…" + ); + }, ms("20s")); await exec(`yarn install`, { cwd: projectDirectory }); clearInterval(internal); }