Skip to content

Commit b5e1913

Browse files
committedJun 1, 2019
fix(cli): updates err message
updates the err message
1 parent ac5a53f commit b5e1913

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎bin/cli.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,17 @@ For more information, see https://webpack.js.org/api/cli/.`);
7272
} catch (err) {
7373
if (err.code === "MODULE_NOT_FOUND") {
7474
let errorMessage =
75-
"\n\u001b[31mwebpack not found, \u001b[33mplease install webpack using\n\t\u001b[32mnpm install --save-dev webpack\n";
75+
"\n\u001b[31mwebpack not installed, consider installing it using \n\u001b[32mnpm install --save-dev webpack\n";
7676

7777
if (process.env.npm_execpath !== undefined && process.env.npm_execpath.includes("yarn")) {
7878
errorMessage =
79-
"\n\u001b[31mwebpack not found, \u001b[33mplease install webpack using\n\t\u001b[32myarn add webpack --dev\n";
79+
"\n\u001b[31mwebpack not installed, consider installing it using \n\u001b[32myarn add webpack --dev\n";
8080
}
8181

8282
console.error(errorMessage);
8383
Error.stackTraceLimit = 1;
8484
process.exitCode = 1;
85+
return;
8586
}
8687

8788
if (err.name !== "ValidationError") {
@@ -107,7 +108,7 @@ For more information, see https://webpack.js.org/api/cli/.`);
107108
*/
108109
const stdout = argv.silent
109110
? {
110-
write: () => {}
111+
write: () => {}
111112
} // eslint-disable-line
112113
: process.stdout;
113114

0 commit comments

Comments
 (0)
Please sign in to comment.