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
This commit is contained in:
Hans Larsen 2018-05-01 15:08:18 -07:00 committed by Hans
parent 3773787302
commit ecb575966a

View File

@ -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;