Please provide us with the following information:
Windows 10.
angular-cli: 1.0.0-beta.19
node: 6.6.0
os: win32 x64
>
This is big project
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
How can I set Heap size in ng
Thanks! We'll be in touch soon.
For others also seeking help with this, the issue is known to plague the CLI (#1652, #2974) when projects grow beyond what many of us consider small-medium sized codebases.
As you mentioned, the fix it to set Node's heap size. This is done with node --max_old_space_size=[Space in MB] followed by whatever call you wanted to make, e.g. node --max_old_space_size=2048 ./node_modules/.bin/ng build (Credit to @hansl for that one line.)
This should help https://github.com/angular/angular-cli/issues/1652#issuecomment-261269197
Closing as dupe of https://github.com/angular/angular-cli/issues/1652
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
For others also seeking help with this, the issue is known to plague the CLI (#1652, #2974) when projects grow beyond what many of us consider small-medium sized codebases.
As you mentioned, the fix it to set Node's heap size. This is done with
node --max_old_space_size=[Space in MB]followed by whatever call you wanted to make, e.g.node --max_old_space_size=2048 ./node_modules/.bin/ng build(Credit to @hansl for that one line.)