FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory


#1

Error : FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [ionic]
2: 0x126284c [ionic]
3: v8::Utils::ReportOOMFailure(char const*, bool) [ionic]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [ionic]
5: v8::internal::factory::NewUninitializedFixedArray(int) [ionic]
6: 0xe0a6b2 [ionic]
7: v8::internal::Runtime_ArrayPush(int, v8::internal::Object**, v8::internal::Isolate*) [ionic]
8: 0x280dadc08506
Aborted (core dumped)


#2

Add memory, should fix your problem


#3

You could give a try with --max-old-space-size=8192 (depending of your node version, the variable may have to be spelled differently)

A reference (one of others) https://github.com/ionic-team/ionic-app-scripts/issues/1247