From 0d3dc7e93b597f60b3a134605f7b52a4ab613747 Mon Sep 17 00:00:00 2001 From: Thomas Kruse Date: Sat, 25 Feb 2017 22:59:48 +0100 Subject: [PATCH] fix: 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. --- 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 923432c96249..e362b2a65d4d 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);