Skip to content

Commit ecb5759

Browse files
committed
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
1 parent 3773787 commit ecb5759

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/@angular/cli/tasks/npm-install.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ export default async function (packageName: string,
4343
// If it's available and we shouldn't save, simply return. Nothing to be done.
4444
resolve(packageName, { checkLocal: true, basedir: projectRoot });
4545

46-
if (!save) {
47-
return;
48-
}
46+
return;
4947
} catch (e) {
5048
if (!(e instanceof ModuleNotFoundException)) {
5149
throw e;

0 commit comments

Comments
 (0)