Intro
Vue.js build was failing in my Linux Server. It had only 1GB of RAM. But, I had configured some decent amount of swap. So, it was NOT supposed to fail. Luckily my search engine showed me the solution quickly.
Solution
export NODE_OPTIONS=--max-old-space-size=4096
Note:-
4096 is swap+ram size in MB, if I remember correctly.
Reference
https://github.com/nodejs/help/issues/1783#issuecomment-465997543
Top comments (0)