mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 23:15:56 +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();
|
||||
}
|
||||
})
|
||||
.then(checkYarnOrCNPM)
|
||||
.then(() => {
|
||||
if (!commandOptions.skipInstall || commandOptions.linkCli) {
|
||||
return checkYarnOrCNPM();
|
||||
}
|
||||
})
|
||||
.then(() => {
|
||||
this.ui.writeLine(chalk.green(`Project '${packageName}' successfully created.`));
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user