Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
  • packages/@angular/cli/tasks

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /