Skip to content

JavaScript heap out of memory #3099

Closed
Closed

Description

@ishara

Please provide us with the following information:

OS?

Windows 10.

Versions.

angular-cli: 1.0.0-beta.19
node: 6.6.0
os: win32 x64

Repro steps.

This is big project

The log given by the failure.

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.

Activity

  1. celliott181 commented on Nov 10, 2016

    @celliott181
    Contributor

    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.)

  2. naveedahmed1 commented on Nov 17, 2016

    @naveedahmed1

    This should help #1652 (comment)

  3. filipesilva commented on Dec 12, 2016

    @filipesilva
    Contributor

    Closing as dupe of #1652

  4. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  5. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions