FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF6B4DC07BF node_api_throw_syntax_error+175823
2: 00007FF6B4D45796 DSA_meth_get_flags+59654
3: 00007FF6B4D47480 DSA_meth_get_flags+67056
4: 00007FF6B57EDCC4 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF6B57D9052 v8::Isolate::Exit+674
6: 00007FF6B565AF0C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF6B56681ED v8::internal::Heap::PublishPendingAllocations+1117
8: 00007FF6B5665277 v8::internal::Heap::PageFlagsAreConsistent+3367
9: 00007FF6B56579A7 v8::internal::Heap::CollectGarbage+2039
10: 00007FF6B566E363 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
11: 00007FF6B566EC0D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
以下是curcor给出的解释:
而我不想安装这个第三方库,又问了它 :
结果是最后确实打包成功!
"build-only:test": "set NODE_OPTIONS=--max-old-space-size=4096 && vite build --mode test",