From cc9006243baf617e520dd38893b82a3e0380f075 Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 3 Aug 2021 18:01:41 +0800 Subject: [PATCH] Clear progress bar which overlays confirm prompt Fix: #3461 --- node_modules/libnpmexec/lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/node_modules/libnpmexec/lib/index.js b/node_modules/libnpmexec/lib/index.js index 57c2a148d3489..0a6129f849eed 100644 --- a/node_modules/libnpmexec/lib/index.js +++ b/node_modules/libnpmexec/lib/index.js @@ -165,6 +165,7 @@ const exec = async (opts) => { const prompt = `Need to install the following packages:\n${ addList }Ok to proceed? ` + typeof log.clearProgress == 'function' && log.clearProgress() const confirm = await read({ prompt, default: 'y' }) if (confirm.trim().toLowerCase().charAt(0) !== 'y') throw new Error('canceled')