mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-23 07:19:58 +08:00
fix(@angular/cli): check package manager only when using one
This commit is contained in:
parent
29c7ba17d3
commit
6e8944e621
@ -101,7 +101,11 @@ export default Task.extend({
|
|||||||
return linkCli.run();
|
return linkCli.run();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(checkYarnOrCNPM)
|
.then(() => {
|
||||||
|
if (!commandOptions.skipInstall || commandOptions.linkCli) {
|
||||||
|
return checkYarnOrCNPM();
|
||||||
|
}
|
||||||
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.ui.writeLine(chalk.green(`Project '${packageName}' successfully created.`));
|
this.ui.writeLine(chalk.green(`Project '${packageName}' successfully created.`));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user