Skip to content

Commit d360359

Browse files
BroccoZhicheng Wang
authored and
Zhicheng Wang
committed
fix(@angular/cli): yarn install does not support --quiet (angular#5310)
1 parent cd69373 commit d360359

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export default Task.extend({
1313

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

0 commit comments

Comments
 (0)