运行yarn run dev:weapp 报错:error Command failed with signal "SIGABRT".



  • ⠋ 正在编译...[BABEL] Note: The code generator has deoptimised the styling of /Users/xxx/mall-next/node_modules/@tarojs/cli/node_modules/prettier/parser-flow.js as it exceeds the max of 500KB.
    ⠙ 正在编译...[BABEL] Note: The code generator has deoptimised the styling of /Users/xxx/mall-next/node_modules/@tarojs/cli/node_modules/prettier/parser-typescript.js as it exceeds the max of 500KB.
    ⠴ 正在编译...
    <--- Last few GCs --->
    
    [5302:0x102d5d000]   118452 ms: Scavenge 2033.5 (2050.3) -> 2032.9 (2050.5) MB, 6.0 / 0.0 ms  (average mu = 0.167, current mu = 0.209) allocation failure 
    [5302:0x102d5d000]   118459 ms: Scavenge 2033.7 (2050.5) -> 2033.1 (2050.5) MB, 5.1 / 0.0 ms  (average mu = 0.167, current mu = 0.209) allocation failure 
    [5302:0x102d5d000]   118465 ms: Scavenge 2033.9 (2050.5) -> 2033.3 (2051.0) MB, 4.6 / 0.0 ms  (average mu = 0.167, current mu = 0.209) allocation failure 
    
    
    <--- JS stacktrace --->
    
    ==== JS stack trace =========================================
    
        0: ExitFrame [pc: 0x1009dcb79]
    Security context: 0x13903a1808d1 <JSObject>
        1: /* anonymous */ [0x1390bd49f3c9] [/Users/xxx/mall-next/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:~342] [pc=0x3325d3eb77e4](this=0x1390a7c7f251 <JSGlobal Object>,0x13906dff1139 <String[28]\: '\x68c0\x67e5 ESLint (\x4ee5\x4e0b\x4e3a ESLint \x7684\x8f93\x51fa)'>,0x1390d9de23a1 <Object map = 0x1390c7407469>)
        2: SourceN...
    
    FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
     1: 0x1011d1c65 node::Abort() (.cold.1) [/usr/local/bin/node]
     2: 0x10009f919 node::Abort() [/usr/local/bin/node]
     3: 0x10009fa7f node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
     4: 0x1001e3867 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
     5: 0x1001e3807 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
     6: 0x10036b995 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/bin/node]
     7: 0x10036d20a v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/local/bin/node]
     8: 0x100369c3c v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]
     9: 0x100367a3e v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
    10: 0x10037390a v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
    11: 0x100373991 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
    12: 0x10034135a v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/node]
    13: 0x100693768 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
    14: 0x1009dcb79 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/usr/local/bin/node]
    15: 0x3325d3eb77e4 
    error Command failed with signal "SIGABRT".
    
    

登录后回复