From 3652ef23109518c23c09b44472c9807e5c3c8b5e Mon Sep 17 00:00:00 2001 From: Marc Bernard Date: Wed, 4 Jun 2025 08:10:23 +0200 Subject: [PATCH] fix: move warning to new line when `npm init` is canceled --- lib/commands/init.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/commands/init.js b/lib/commands/init.js index 8d1752b537140..a40f9349b238c 100644 --- a/lib/commands/init.js +++ b/lib/commands/init.js @@ -177,6 +177,7 @@ class Init extends BaseCommand { return data } catch (er) { if (er.message === 'canceled') { + output.flush() log.warn('init', 'canceled') } else { throw er