mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 04:26:01 +08:00
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:
parent
e31413558f
commit
07e93c0210
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user