How to solve npm run build 137 error? Already have set 10gb


I am running npm run build to create a docker. It has –prod option. If ran without –prod it builds fine. If built with –prod it goes into 137 ENDLIFECYCLE error.

npm ERR! errno 137

Unfortunately i can’t just remove the prod option, cos thats what works on dev machine and I am just supposed to be doing devops.

I saw many places that its because of memory low, so i set the variable
NODE_OPTIONS –max-old-space-size

It is at 10GB currently and it is not helping. And i can build same docker in my machine with 8GB.

This build is happening inside jenkins and i did a free -m inside docker just to see, the server has 64GB memory.

So what could be the issue?

Source: Angular Questions

Categorized as angular, docker, jenkins, node.js, npm Tagged , , , ,


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us