Skip to content

Commit 33e9039

Browse files
clydinmgechev
authored andcommitted
build: set minimum Node.js version to 10.13 (angular#15756)
Version 10.13.0 was the first version of 10.x that was considered LTS. This also provides an improved performance baseline as well as access to newer Node.js APIs and Javascript language features which the Angular CLI will now be able to leverage.
1 parent 3183963 commit 33e9039

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

lib/packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function loadPackageJson(p: string) {
8282
// Overwrite engines to a common default.
8383
case 'engines':
8484
pkg['engines'] = {
85-
'node': '>= 10.9.0',
85+
'node': '>= 10.13.0',
8686
'npm': '>= 6.11.0',
8787
'pnpm': '>= 3.2.0',
8888
'yarn': '>= 1.13.0',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"url": "https://github.com/angular/angular-cli.git"
4444
},
4545
"engines": {
46-
"node": ">=10.9.0 <13.0.0",
46+
"node": ">=10.13.0 <13.0.0",
4747
"yarn": ">=1.17.3 <2.0.0"
4848
},
4949
"author": "Angular Authors",
@@ -101,7 +101,7 @@
101101
"@types/karma": "^3.0.2",
102102
"@types/loader-utils": "^1.1.3",
103103
"@types/minimist": "^1.2.0",
104-
"@types/node": "10.9.4",
104+
"@types/node": "10.12.30",
105105
"@types/request": "^2.47.1",
106106
"@types/semver": "^6.0.0",
107107
"@types/webpack": "^4.32.1",

packages/angular/cli/bin/ng

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ try {
1414
var version = process.version.substr(1).split('.');
1515
if (Number(version[0]) < 10 || (Number(version[0]) === 10 && Number(version[1]) < 9)) {
1616
process.stderr.write(
17-
'You are running version ' + process.version + ' of Node.js, which is not supported by Angular CLI 8.0+.\n' +
18-
'The official Node.js version that is supported is 10.9 or greater.\n\n' +
17+
'You are running version ' + process.version + ' of Node.js, which is not supported by Angular CLI 9.0+.\n' +
18+
'The official Node.js version that is supported is 10.13.0 or greater.\n\n' +
1919
'Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.\n'
2020
);
2121

packages/angular_devkit/benchmark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"benchmark"
1111
],
1212
"engines": {
13-
"node": ">= 10.9.0",
13+
"node": ">= 10.13.0",
1414
"npm": ">= 6.2.0"
1515
},
1616
"dependencies": {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,10 +1206,10 @@
12061206
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.11.tgz#be879b52031cfb5d295b047f5462d8ef1a716446"
12071207
integrity sha512-Otxmr2rrZLKRYIybtdG/sgeO+tHY20GxeDjcGmUnmmlCWyEnv2a2x1ZXBo3BTec4OiTXMQCiazB8NMBf0iRlFw==
12081208

1209-
"@types/node@10.9.4":
1210-
version "10.9.4"
1211-
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.9.4.tgz#0f4cb2dc7c1de6096055357f70179043c33e9897"
1212-
integrity sha512-fCHV45gS+m3hH17zgkgADUSi2RR1Vht6wOZ0jyHP8rjiQra9f+mIcgwPQHllmDocYOstIEbKlxbFDYlgrTPYqw==
1209+
"@types/node@10.12.30":
1210+
version "10.12.30"
1211+
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.30.tgz#4c2b4f0015f214f8158a347350481322b3b29b2f"
1212+
integrity sha512-nsqTN6zUcm9xtdJiM9OvOJ5EF0kOI8f1Zuug27O/rgtxCRJHGqncSWfCMZUP852dCKPsDsYXGvBhxfRjDBkF5Q==
12131213

12141214
"@types/node@^10.1.0":
12151215
version "10.14.20"

0 commit comments

Comments
 (0)