I'm trying to run a react-native project on an older MacBook Pro from 2011 with 4 gb of ram because my new MacBook Pro is in for repair.
The error I'm getting when building is "JavaScript heap out of memory":
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/Users/Max/.nvm/versions/node/v6.7.0/bin/node]
2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>,
v8::Local<v8::Message>) [/Users/Max/.nvm/versions/node/v6.7.0/bin/node]
I tried the fix refered here: How to prevent node from running out of memory when bundling js for React Native
But the problem still persist. Any idea what might be wrong and how to fix this? Is this an unsolvable issue with my machine and maybe I have to wait for my regular workstation with 16 gb of ram to be repaired or is there another solution?