Skip to content

Commit

Permalink
fix(@angular/cli): check package manager only when using one
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Lyding authored and filipesilva committed Jun 6, 2017
1 parent 29c7ba1 commit 6e8944e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@angular/cli/tasks/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`));
});
Expand Down

0 comments on commit 6e8944e

Please sign in to comment.