<--- Last few GCs --->
3)[18516:000001DBABD323B0] 117573 ms: Mark-sweep 2046.6 (2061.6) -> 2044.
5 (2063.8) MB, 770.9 / 0.1 ms (+ 427.8 ms in 95 steps since start of marki
ng, biggest step 6.9 ms, walltime since start of marking 1217 ms) (average
mu = 0.078, current mu = 0.015) [18516:000001DBABD323B0] 118950 ms: Mark-
sweep 2049.6 (2063.8) -> 2047.8 (2066.6) MB, 1009.4 / 0.1 ms (+ 352.9 ms i
n 80 steps since start of marking, biggest step 7.1 ms, walltime since star
t of marking 1376 ms) (average mu = 0.040, current mu = 0.010)
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 00007FF705EDDB4D]
1: StubFrame [pc: 00007FF705E84A06]
Security context: 0x039df16c08d1 <JSObject>
2: eval [000003A5116CBEB9] [F:\qm\enterprise-mini-app-update\node_modul
es\less\lib\less\tree\ruleset.js:~44] [pc=000003CD0331A10E](this=0x03eb47b2
c4c1 <Ruleset map = 000003CC77FA7BC9>,0x007e766194f1 <JSObject>)
3: eval [000003A5116CBEB9] [F:\qm\enterprise-mini-app-update\node_modul
es\less\lib\less\tree\rulese...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed -
JavaScript heap out of memory
1: 00007FF7052A292F napi_wrap+119263
2: 00007FF7052495F6 v8::internal::OrderedHashTable<v8::internal::OrderedHa
shSet,1>::NextTableOffset+38102
3: 00007FF70524A3F6 node::OnFatalError+438
4: 00007FF705A882BE v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF705A70471 v8::SharedArrayBuffer::Externalize+833
6: 00007FF705921C4C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1
436
7: 00007FF70592CE90 v8::internal::Heap::ProtectUnprotectedMemoryChunks+131
2
8: 00007FF7059299A4 v8::internal::Heap::PageFlagsAreConsistent+3204
9: 00007FF70591F1A3 v8::internal::Heap::CollectGarbage+1283
10: 00007FF70591D814 v8::internal::Heap::AddRetainedMap+2500
11: 00007FF70593EB5D v8::internal::Factory::NewFillerObject+61
12: 00007FF7056A2151 v8::internal::interpreter::JumpTableTargetOffsets::ite
rator::operator=+1665
13: 00007FF705EDDB4D v8::internal::SetupIsolateDelegate::SetupHeap+546925
14: 00007FF705E84A06 v8::internal::SetupIsolateDelegate::SetupHeap+182054
15: 000003CD0331A10E
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! enterprise-mini-app@1.0.0 build:weapp: `taro build --type weapp "-
-watch"`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the enterprise-mini-app@1.0.0 build:weapp script.
npm ERR! This is probably not a problem with npm. There is likely additiona
l logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-11
-17T07_42_12_420Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! enterprise-mini-app@1.0.0 dev:weapp: `npm run build:weapp -- --wat
ch`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the enterprise-mini-app@1.0.0 dev:weapp script.
npm ERR! This is probably not a problem with npm. There is likely additiona
l logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-11
-17T07_42_12_437Z-debug.log
增加node运行内存(一般在package.json中配置)
"build-prod": "node --max_old_space_size=5048"
或者执行以下命令
set NODE_OPTIONS=--max_old_space_size=8172