Skip to content

Commit

Permalink
fix(@angular/cli): yarn install does not support --quiet (angular#5310)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco authored and Zhicheng Wang committed Mar 16, 2017
1 parent cd69373 commit d360359
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@angular/cli/tasks/npm-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export default Task.extend({

return new Promise(function(resolve, reject) {
ui.writeLine(chalk.green(`Installing packages for tooling via ${packageManager}.`));
exec(`${packageManager} --quiet install`,
let installCommand = `${packageManager} --quiet install`;
if (packageManager === 'yarn') {
installCommand = `${packageManager} install`;
}
exec(installCommand,
(err: NodeJS.ErrnoException, _stdout: string, stderr: string) => {
if (err) {
ui.writeLine(stderr);
Expand Down

0 comments on commit d360359

Please sign in to comment.