ubuntu@ip-172-31-25-55:~/aws$ npx tsc
<--- Last few GCs --->
lu[2293:0x46b2d60] 21795 ms: Mark-sweep 488.7 (490.8) -> 488.3 (491.3) MB, 435.5 / 0.0 ms (+ 72.9 ms in 15 steps since start of marking, biggest step 17.0 ms, walltime since start of marking 533 ms) (average mu = 0.166, current mu = 0.046) allocation fa[2293:0x46b2d60] 22463 ms: Mark-sweep 489.2 (491.3) -> 487.7 (490.8) MB, 636.2 / 0.0 ms (+ 0.1 ms in 13 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 668 ms) (average mu = 0.106, current mu = 0.048) allocation fail
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x140de99]
1: StubFrame [pc: 0x140ed6d]
Security context: 0x1f08e4e408d1 <JSObject>
2: resolveModuleNamesReusingOldState(aka resolveModuleNamesReusingOldState) [0x3e538cc07189] [/home/ubuntu/aws/node_modules/typescript/lib/tsc.js:~87610] [pc=0x1fef1cdc78f1](this=0x1d2095e004b1 <undefined>,0x1ccf55945d51 <JSArray[10]>,0x1ccf559458b9 <Node map = 0x39162f70eda9>)
3: processImportedModules(aka processImported...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa1a640 node::Abort() [node]
2: 0xa1aa4c node::OnFatalError(char const*, char const*) [node]
3: 0xb9a68e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb9aa09 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xd57c85 [node]
6: 0xd58316 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
7: 0xd64bd5 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xd65a85 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xd6853c v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
10: 0xd2ef5b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
11: 0x107158e v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
12: 0x140de99 [node]
Aborted (core dumped)