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
This commit is contained in:
Thomas Kruse 2017-02-25 22:59:48 +01:00 committed by Filipe Silva
parent e31413558f
commit 07e93c0210

View File

@ -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);