mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
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:
parent
3773787302
commit
ecb575966a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user