Skip to content

Commit

Permalink
fix(@angular/cli): use quiet flag only in case of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitarora authored and hansl committed May 3, 2017
1 parent f73a9e4 commit 9805010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@angular/cli/tasks/npm-install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default Task.extend({

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

0 comments on commit 9805010

Please sign in to comment.