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! code ELIFECYCLE
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
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
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Our dedicated development team is here for you!
We can help you find answers to your question for as low as 5$.