File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,16 @@ For more information, see https://webpack.js.org/api/cli/.`);
73
73
// When webpack is not installed and no args passed to the CLI
74
74
if ( err . code === "MODULE_NOT_FOUND" ) {
75
75
let errorMessage =
76
- "\n\u001b[31mwebpack not found, please install webpack using\n\t\u001b[33mnpm install --save-dev webpack\n" ;
76
+ "\n\u001b[31mwebpack not found, \u001b[33mplease install webpack using\n\t\u001b[32mnpm install --save-dev webpack\n" ;
77
77
78
78
if ( process . env . npm_execpath !== undefined && process . env . npm_execpath . includes ( "yarn" ) ) {
79
79
errorMessage =
80
- "\n\u001b[31mwebpack not found, please install webpack using\n\t\u001b[33myarn add webpack --dev\n" ;
80
+ "\n\u001b[31mwebpack not found, \u001b[33mplease install webpack using\n\t\u001b[32myarn add webpack --dev\n" ;
81
81
}
82
82
83
83
console . error ( errorMessage ) ;
84
+ Error . stackTraceLimit = 1 ;
85
+ process . exitCode = 1 ;
84
86
return ;
85
87
}
86
88
You can’t perform that action at this time.
0 commit comments