We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5023051 commit a069073Copy full SHA for a069073
packages/angular/cli/bin/ng
@@ -16,13 +16,13 @@ try {
16
// tslint:disable-next-line: no-var-keyword
17
var version = process.versions.node.split('.').map(part => Number(part));
18
if (version[0] < 10 || version[0] === 11 || (version[0] === 10 && version[1] < 13)) {
19
- process.stderr.write(
+ console.error(
20
'Node.js version ' + process.version + ' detected.\n' +
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',
+ 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n'
23
);
24
25
- process.exit(3);
+ process.exitCode = 3;
26
+} else {
27
+ require('../lib/init');
28
}
-
-require('../lib/init');
0 commit comments