rendering chunks (199)...
<--- Last few GCs --->
[14968:000002A219EB6D80] 105222 ms: Mark-sweep (reduce) 4055.6 (4143.0) -> 4054.7 (4143.5) MB, 1710.4 / 0.0 ms (average mu = 0.372, current mu = 0.357) allocation failure scavenge might not succeed
[14968:000002A219EB6D80] 106903 ms: Mark-sweep (reduce) 4056.1 (4144.0) -> 4055.8 (4144.2) MB, 1677.8 / 0.0 ms (average mu = 0.200, current mu = 0.002) allocation failure GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF68750151F v8::internal::CodeObjectRegistry::~CodeObjectRegistry+121999
2: 00007FF68748B386 DSA_meth_get_flags+64118
3: 00007FF68748C402 DSA_meth_get_flags+68338
4: 00007FF687DC2C94 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF687DAD25D v8::SharedArrayBuffer::Externalize+781
6: 00007FF687C5081C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1468
7: 00007FF687C4D934 v8::internal::Heap::CollectGarbage+4244
8: 00007FF687C4B2B0 v8::internal::Heap::AllocateExternalBackingStore+2000
9: 00007FF687C6FE36 v8::internal::Factory::NewFillerObject+214
10: 00007FF6879A23FA v8::internal::DateCache::Weekday+1466
11: 00007FF687E50971 v8::internal::SetupIsolateDelegate::SetupHeap+494417
12: 000002A21C0C6EE0
1. 下载需要的插件
npm install -D increase-memory-limit cross-env
2.在package.json中的scripts中添加命令
“fix-memory-limit”: “cross-env LIMIT=8048 increase-memory-limit”
3.执行
npm run fix-memory-limit
4.重新运行
npm run dev