Microsoft Windows [版本 10.0.18362.356]
(c) 2019 Microsoft Corporation。保留所有权利。
E:\FengJi\cocos-engine\engine-2.1.2\engine>gulp build
[11:54:18] Using gulpfile E:\FengJi\cocos-engine\engine-2.1.2\engine\gulpfile.js
[11:54:18] Starting 'clean-cache'...
[11:54:18] Starting 'build-debug-infos'...
[11:54:18] Finished 'build-debug-infos' after 7.43 ms
[11:54:18] Starting 'build-html5-preview'...
[11:54:18] Starting 'build-jsb-preview'...
[11:54:18] Finished 'clean-cache' after 332 ms
[11:54:18] Starting 'build-jsb-dev'...
[11:54:18] Starting 'build-jsb-min'...
(node:2020) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
<--- Last few GCs --->
[2020:000001ED42C12430] 95942 ms: Mark-sweep 1362.1 (1457.1) -> 1359.4 (1457.1) MB, 727.6 / 0.0 ms (average mu = 0.068, current mu = 0.004) allocation failure scavenge might not succeed
[2020:000001ED42C12430] 96705 ms: Mark-sweep 1363.6 (1457.1) -> 1362.4 (1457.1) MB, 762.0 / 0.0 ms (average mu = 0.034, current mu = 0.002) allocation failure scavenge might not succeed
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 000000170AF5C5C1]
Security context: 0x02052b01e6e9 <JSObject>
1: enter [00000024F77EE711] [E:\FengJi\cocos-engine\engine-2.1.2\engine\node_modules\optimize-js\lib\index.js:~13] [pc=000000170C8629FE](this=0x02e040c64ea1 <Object map = 0000016454E35581>,node=0x01dd731c5e61 <Node map = 000002CA124C2CB1>,parent=0x01dd731c22c1 <Node map = 000003B62DD84829>)
2: arguments adaptor frame: 4->2
3: visit(aka visit) [...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF769A7C6AA v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4506
2: 00007FF769A57416 node::MakeCallback+4534
3: 00007FF769A57D90 node_module_register+2032
4: 00007FF769D7189E v8::internal::FatalProcessOutOfMemory+846
5: 00007FF769D717CF v8::internal::FatalProcessOutOfMemory+639
6: 00007FF769F57F94 v8::internal::Heap::MaxHeapGrowingFactor+9620
7: 00007FF769F4EF76 v8::internal::ScavengeJob::operator=+24550
8: 00007FF769F4D5CC v8::internal::ScavengeJob::operator=+17980
9: 00007FF769F56317 v8::internal::Heap::MaxHeapGrowingFactor+2327
10: 00007FF769F56396 v8::internal::Heap::MaxHeapGrowingFactor+2454
11: 00007FF76A080637 v8::internal::Factory::NewFillerObject+55
12: 00007FF76A0FD826 v8::internal::operator<<+73494
13: 000000170AF5C5C1
E:\FengJi\cocos-engine\engine-2.1.2\engine>node -v
v10.16.0
如果使用v8.11.1就没问题~~