Skip to content

Commit 9805010

Browse files
sumitarorahansl
authored andcommitted
fix(@angular/cli): use quiet flag only in case of npm
1 parent f73a9e4 commit 9805010

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@angular/cli/tasks/npm-install.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export default Task.extend({
1313

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

0 commit comments

Comments
 (0)