Skip to content

Commit aaf29dd

Browse files
Charles Lydingfilipesilva
Charles Lyding
authored andcommitted
fix(@angular/cli): check package manager only when using one
1 parent 96d2a16 commit aaf29dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/@angular/cli/tasks/init.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ export default Task.extend({
101101
return linkCli.run();
102102
}
103103
})
104-
.then(checkYarnOrCNPM)
104+
.then(() => {
105+
if (!commandOptions.skipInstall || commandOptions.linkCli) {
106+
return checkYarnOrCNPM();
107+
}
108+
})
105109
.then(() => {
106110
this.ui.writeLine(chalk.green(`Project '${packageName}' successfully created.`));
107111
});

0 commit comments

Comments
 (0)