Skip to content

Commit e011260

Browse files
committed
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 (cherry picked from commit 34f486e)
1 parent 6173609 commit e011260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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.14.1 || >=14.0.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)