Skip to content

Commit 07e93c0

Browse files
Thomas Krusefilipesilva
Thomas Kruse
authored andcommitted
fix(@angular/cli): enforce loglevel warn for npm-install
The npm call uses the node exec() call which has a default limit of 200kb after which the process is terminated. When the user has set the info loglevel ng new terminates without any helpful error message. When using --quiet the loglevel is set to warning in any case resulting in a successful build. This is especially important for users of docker since the current node base image sets the loglevel to info. Close #5010
1 parent e314135 commit 07e93c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ 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} install`,
16+
exec(`${packageManager} --quiet install`,
1717
(err: NodeJS.ErrnoException, _stdout: string, stderr: string) => {
1818
if (err) {
1919
ui.writeLine(stderr);

0 commit comments

Comments
 (0)