File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -72,16 +72,17 @@ For more information, see https://webpack.js.org/api/cli/.`);
72
72
} catch ( err ) {
73
73
if ( err . code === "MODULE_NOT_FOUND" ) {
74
74
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" ;
76
76
77
77
if ( process . env . npm_execpath !== undefined && process . env . npm_execpath . includes ( "yarn" ) ) {
78
78
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" ;
80
80
}
81
81
82
82
console . error ( errorMessage ) ;
83
83
Error . stackTraceLimit = 1 ;
84
84
process . exitCode = 1 ;
85
+ return ;
85
86
}
86
87
87
88
if ( err . name !== "ValidationError" ) {
@@ -107,7 +108,7 @@ For more information, see https://webpack.js.org/api/cli/.`);
107
108
*/
108
109
const stdout = argv . silent
109
110
? {
110
- write : ( ) => { }
111
+ write : ( ) => { }
111
112
} // eslint-disable-line
112
113
: process . stdout ;
113
114
You can’t perform that action at this time.
0 commit comments