npm install fails with "JavaScript heap out of memory"
Running npm install
in the project root directory fails with below error. Am I missing any setting or dependency that is not mentioned in the README?
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0xca5580 node::Abort() [npm install]
2: 0xb781f9 [npm install]
3: 0xeca4d0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [npm install]
4: 0xeca7b7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [npm install]
5: 0x10dc505 [npm install]
6: 0x10dca94 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [npm install]
7: 0x10f3984 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*) [npm install]
8: 0x10f419c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [npm install]
9: 0x10f62fa v8::internal::Heap::HandleGCRequest() [npm install]
10: 0x1061967 v8::internal::StackGuard::HandleInterrupts() [npm install]
11: 0x15031c2 v8::internal::Runtime_StackGuardWithGap(int, unsigned long*, v8::internal::Isolate*) [npm install]
12: 0x78f119ed9ef6
[1] 25605 IOT instruction (core dumped) npm install