From e0112603c139847c649413ba95faef93d9b74bf0 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Fri, 8 Oct 2021 11:31:47 -0400 Subject: [PATCH] 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 34f486ef3f3c581e247b049e6824396071008006) --- lib/packages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/packages.ts b/lib/packages.ts index a3cdf85795ef..ece8839d7771 100644 --- a/lib/packages.ts +++ b/lib/packages.ts @@ -86,7 +86,7 @@ function loadPackageJson(p: string) { case 'engines': pkg['engines'] = { 'node': '^12.14.1 || >=14.0.0', - 'npm': '^6.11.0 || ^7.5.6', + 'npm': '^6.11.0 || ^7.5.6 || >=8.0.0', 'yarn': '>= 1.13.0', }; break;