our angular 7 builds randomly fails with “Error: spawn ENOMEM”
It happened a while back (every build), and our solution at the time was to increase memory with
node --max_old_space_size=4096, which worked great, until now.
recently, it starts to fail again at random, with the same error. and a rebuild (without any code changes) fixes the problem.
i’ve tried to follow the recommendations listed on Caching Dependencies, but it doesn’t solve the issue.
the last failed circle build: https://circleci.com/gh/capehq/cloud-frontend/3042
to add, builds are more likely to fail when there are 2 builds happening at the same time.