Skip to content

Commit 34f486e

Browse files
clydinalan-agius4
authored andcommitted
fix(@angular/cli): add engine field support for npm 8 and higher
The `npm` package manager recently released version 8. This version removes support for older versions of Node.js but retains support for the versions that align with Angular's support range. The Angular CLI packages unfortunately did not support version 8 due to the ranges only permitting versions ^6.11.0 and ^7.5.6 which were the minimums for each that ensured a functioning Angular CLI environment. The range has now been expanded to include >=8.0.0 to allow newer versions of `npm` to function as well. npm 8.0.0 release information: https://github.com/npm/cli/releases/tag/v8.0.0
1 parent 6cb033e commit 34f486e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function loadPackageJson(p: string) {
8686
case 'engines':
8787
pkg['engines'] = {
8888
'node': '^12.20.0 || ^14.15.0 || >=16.10.0',
89-
'npm': '^6.11.0 || ^7.5.6',
89+
'npm': '^6.11.0 || ^7.5.6 || >=8.0.0',
9090
'yarn': '>= 1.13.0',
9191
};
9292
break;

0 commit comments

Comments
 (0)