From 07e93c0210c7629de03c7f812c32f72eddcb716b Mon Sep 17 00:00:00 2001 From: Thomas Kruse Date: Sat, 25 Feb 2017 22:59:48 +0100 Subject: [PATCH] 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 --- packages/@angular/cli/tasks/npm-install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@angular/cli/tasks/npm-install.ts b/packages/@angular/cli/tasks/npm-install.ts index 923432c962..e362b2a65d 100644 --- a/packages/@angular/cli/tasks/npm-install.ts +++ b/packages/@angular/cli/tasks/npm-install.ts @@ -13,7 +13,7 @@ export default Task.extend({ return new Promise(function(resolve, reject) { ui.writeLine(chalk.green(`Installing packages for tooling via ${packageManager}.`)); - exec(`${packageManager} install`, + exec(`${packageManager} --quiet install`, (err: NodeJS.ErrnoException, _stdout: string, stderr: string) => { if (err) { ui.writeLine(stderr);