File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ try {
16
16
// tslint:disable-next-line: no-var-keyword
17
17
var version = process . versions . node . split ( '.' ) . map ( part => Number ( part ) ) ;
18
18
if ( version [ 0 ] < 10 || version [ 0 ] === 11 || ( version [ 0 ] === 10 && version [ 1 ] < 13 ) ) {
19
- process . stderr . write (
19
+ console . error (
20
20
'Node.js version ' + process . version + ' detected.\n' +
21
21
'The Angular CLI requires a minimum Node.js version of either v10.13 or v12.0.\n\n' +
22
- 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n' ,
22
+ 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n'
23
23
) ;
24
24
25
- process . exit ( 3 ) ;
25
+ process . exitCode = 3 ;
26
+ } else {
27
+ require ( '../lib/init' ) ;
26
28
}
27
-
28
- require ( '../lib/init' ) ;
You can’t perform that action at this time.
0 commit comments