File tree 5 files changed +26
-14
lines changed
5 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ commands:
77
77
at : *workspace_location
78
78
setup_windows :
79
79
steps :
80
- - run : nvm install 12.1.0
81
- - run : nvm use 12.1.0
82
- - run : npm install -g yarn@1.17.3
80
+ - run : nvm install 12.13
81
+ - run : nvm use 12.13
82
+ - run : npm install -g yarn@1.22.10
83
83
- run : node --version
84
84
- run : yarn --version
85
85
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ function loadPackageJson(p: string) {
87
87
// Overwrite engines to a common default.
88
88
case 'engines' :
89
89
pkg [ 'engines' ] = {
90
- 'node' : '>= 10 .13.0' ,
90
+ 'node' : '>= 12 .13.0' ,
91
91
'npm' : '^6.11.0' ,
92
92
'yarn' : '>= 1.13.0' ,
93
93
} ;
Original file line number Diff line number Diff line change 43
43
"url" : " https://github.com/angular/angular-cli.git"
44
44
},
45
45
"engines" : {
46
- "node" : " >=10 .13.0 <13 .0.0" ,
46
+ "node" : " >=12 .13.0 <15 .0.0" ,
47
47
"yarn" : " >=1.22.4"
48
48
},
49
49
"author" : " Angular Authors" ,
Original file line number Diff line number Diff line change @@ -14,12 +14,28 @@ try {
14
14
// These may not support ES2015 features such as const/let/async/await/etc.
15
15
// These would then crash with a hard to diagnose error message.
16
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 ) ) {
17
+ var version = process . versions . node . split ( '.' ) . map ( ( part ) => Number ( part ) ) ;
18
+ if ( version [ 0 ] % 2 === 1 && version [ 0 ] > 14 ) {
19
+ // Allow new odd numbered releases with a warning (currently v15+)
20
+ console . warn (
21
+ 'Node.js version ' +
22
+ process . version +
23
+ ' detected.\n' +
24
+ 'Odd numbered Node.js versions will not enter LTS status and should not be used for production.' +
25
+ ' For more information, please see https://nodejs.org/en/about/releases/.' ,
26
+ ) ;
27
+ } else if (
28
+ version [ 0 ] < 12 ||
29
+ version [ 0 ] === 13 ||
30
+ ( version [ 0 ] === 12 && version [ 1 ] < 13 ) ||
31
+ ( version [ 0 ] === 14 && version [ 1 ] < 15 )
32
+ ) {
19
33
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'
34
+ 'Node.js version ' +
35
+ process . version +
36
+ ' detected.\n' +
37
+ 'The Angular CLI requires a minimum Node.js version of either v12.13 or v14.15.\n\n' +
38
+ 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n' ,
23
39
) ;
24
40
25
41
process . exitCode = 3 ;
Original file line number Diff line number Diff line change 9
9
"keywords" : [
10
10
" benchmark"
11
11
],
12
- "engines" : {
13
- "node" : " >= 10.13.0" ,
14
- "npm" : " >= 6.2.0"
15
- },
16
12
"dependencies" : {
17
13
"@angular-devkit/core" : " 0.0.0" ,
18
14
"ansi-colors" : " 4.1.1" ,
You can’t perform that action at this time.
0 commit comments