From ecb575966aa54a5e5993d0a7f28df10a765fb61d Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Tue, 1 May 2018 15:08:18 -0700 Subject: [PATCH] fix(@angular/cli): dont install if the package is resolved Even if it should be saved. The assumption is that if it is present it is in the package.json --- packages/@angular/cli/tasks/npm-install.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/@angular/cli/tasks/npm-install.ts b/packages/@angular/cli/tasks/npm-install.ts index f85d4eb626..24f7b00c51 100644 --- a/packages/@angular/cli/tasks/npm-install.ts +++ b/packages/@angular/cli/tasks/npm-install.ts @@ -43,9 +43,7 @@ export default async function (packageName: string, // If it's available and we shouldn't save, simply return. Nothing to be done. resolve(packageName, { checkLocal: true, basedir: projectRoot }); - if (!save) { - return; - } + return; } catch (e) { if (!(e instanceof ModuleNotFoundException)) { throw e;