FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

$ unset CI $ npm install --progress=false

uws@9.14.0 install /builds/mukundonline/tya-operation/node_modules/uws node-gyp rebuild > build_log.txt 2>&1 (closed) || exit 0 node-sass@4.13.0 install /builds/mukundonline/tya-operation/node_modules/node-sass node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.0/linux-x64-79_binding.node Download complete Binary saved to /builds/mukundonline/tya-operation/node_modules/node-sass/vendor/linux-x64-79/binding.node Caching binary to /root/.npm/node-sass/4.13.0/linux-x64-79_binding.node uglifyjs-webpack-plugin@0.4.6 postinstall /builds/mukundonline/tya-operation/node_modules/webpack/node_modules/uglifyjs-webpack-plugin node lib/post_install.js node-sass@4.13.0 postinstall /builds/mukundonline/tya-operation/node_modules/node-sass node scripts/build.js Binary found at /builds/mukundonline/tya-operation/node_modules/node-sass/vendor/linux-x64-79/binding.node Testing binary Binary is fine npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) added 1626 packages from 1366 contributors and audited 10298 packages in 59.2s found 176 vulnerabilities (8 low, 18 moderate, 149 high, 1 critical) run npm audit fix to fix them, or npm audit for details $ ng build --prod --aot --sourceMap=false --output-hashing=all --base-href / Your global Angular CLI version (8.3.20) is greater than your local version (1.6.8). The local Angular CLI version is used. To disable this warning use "ng config -g cli.warnings.versionMismatch false". The option '--sourceMap' is not registered with the build command. Run ng build --help for a list of supported options. Node#moveTo was deprecated. Use Container#append. <--- Last few GCs ---> [260:0x47807b0] 126991 ms: Mark-sweep 1776.9 (1872.4) -> 1768.2 (1874.7) MB, 3206.8 / 0.1 ms (average mu = 0.110, current mu = 0.055) allocation failure scavenge might not succeed [260:0x47807b0] 130337 ms: Mark-sweep 1779.0 (1874.7) -> 1771.6 (1879.7) MB, 3189.2 / 0.1 ms (average mu = 0.079, current mu = 0.047) allocation failure scavenge might not succeed <--- JS stacktrace ---> ==== JS stack trace ========================================= 0: ExitFrame [pc: 0x13a1179] 1: StubFrame [pc: 0x1334001] Security context: 0x08c1b9440921 2: /* anonymous / [0x133a3030a0e9] [/builds/mukundonline/tya-operation/node_modules/@angular/compiler/bundles/compiler.umd.js:~18211] [pc=0x1c8177552917](this=0x3a95d91690e1 <_ApplySourceSpanTransformer map = 0x3a1ce4133341>,0x3a95d9168f59 ,0x0f242d4c01c1 ) 3: / anonymous / [... FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Writing Node.js report to file: report.20200223.093625.260.0.001.json Node.js report completed 1: 0x9f0390 node::Abort() [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 2: 0x9f25e2 node::OnFatalError(char const, char const*) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 3: 0xb4c04e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 4: 0xb4c3c9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 5: 0xcf9ee5 [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 6: 0xcfa576 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 7: 0xd0978f v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 8: 0xd0a615 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 9: 0xd0d0ac v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 10: 0xcd3b94 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 11: 0x1020cce v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] 12: 0x13a1179 [ng build --prod --aot --sourceMap=false --output-hashing=all --base-href /] /bin/bash: line 102: 260 Aborted (core dumped) ng build --prod --aot --sourceMap=false --output-hashing=all --base-href / ERROR: Job failed: exit code 1

image