DEV Community

Discussion on: Fix of Angular-cli 'JavaScript heap out of memory' error while running 'ng serve'

Collapse
 
shardymbai profile image
Scott Hardy

I don't think this is correct and only a bandaid solution for local development. CircleCI and TraviisCI have memory limits for their containers. I know CircleCI is 4GB (at least in the most common tier). I also think giving 8Gbs of swap to nodeJS is not a good idea given developers will be running other memory heavy applications (IDE, Browser etc.. ) and most developers (if lucky) will have 16GBs of memory.