From ffc93e556d784e2d4409cb0d3a92d737850996f4 Mon Sep 17 00:00:00 2001 From: James George Date: Sun, 10 Jan 2021 15:32:53 +0530 Subject: [PATCH] fix: show exact package name while prompting for installation (#2338) --- packages/webpack-cli/lib/webpack-cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-cli/lib/webpack-cli.js b/packages/webpack-cli/lib/webpack-cli.js index cae401941d8..e18f4a5bdb7 100644 --- a/packages/webpack-cli/lib/webpack-cli.js +++ b/packages/webpack-cli/lib/webpack-cli.js @@ -357,7 +357,7 @@ class WebpackCLI { try { pkg = await promptInstallation(pkg, () => { - logger.error(`For using this command you need to install: '${green(commandName)}' package`); + logger.error(`For using this command you need to install: '${green(pkg)}' package`); }); } catch (error) { logger.error(`Action Interrupted, use '${cyan('webpack-cli help')}' to see possible commands`);