Skip to content

Commit 77fe6c4

Browse files
committed
fix(@angular/cli): update engines to require node 12.20.0
BREAKING CHANGE: We drop support for Node.js versions prior to `12.20`.
1 parent 3ba13f4 commit 77fe6c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function loadPackageJson(p: string) {
8585
// Overwrite engines to a common default.
8686
case 'engines':
8787
pkg['engines'] = {
88-
'node': '^12.14.1 || >=14.0.0',
88+
'node': '^12.20.0 || >=14.0.0',
8989
'npm': '^6.11.0 || ^7.5.6',
9090
'yarn': '>= 1.13.0',
9191
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"url": "https://github.com/angular/angular-cli.git"
4141
},
4242
"engines": {
43-
"node": "^12.14.1 || ^14.0.0",
43+
"node": "^12.20.0 || ^14.0.0",
4444
"yarn": ">=1.21.1 <2",
4545
"npm": "Please use yarn instead of NPM to install dependencies"
4646
},

packages/angular/cli/bin/ng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if (version[0] % 2 === 1 && version[0] > 14) {
2929
} else if (
3030
version[0] < 12 ||
3131
version[0] === 13 ||
32-
(version[0] === 12 && version[1] < 14) ||
32+
(version[0] === 12 && version[1] < 20) ||
3333
(version[0] === 14 && version[1] < 15)
3434
) {
3535
// Error and exit if less than 12.14 or 13.x or less than 14.15

0 commit comments

Comments
 (0)