gulp build 错误

<— JS stacktrace —>

==== JS stack trace =========================================

0: ExitFrame [pc: 0x240f7ab5be3d]

Security context: 0x2be8f179e6e9
1: enter [0x2be817366b61] [/Users/sunshine/engine/node_modules/optimize-js/lib/index.js:~13] [pc=0x240f7bcee606](this=0x2be843d31671 ,node=0x2be8f1478269 ,parent=0x2be851efff51 )
2: arguments adaptor frame: 4->2
3: visit(aka visit) [0x2be843d31711] [/Users/sunshine…

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x10003c597 node::Abort() [/usr/local/bin/node]

  • Creator 版本:2.0.9

  • 目标平台: mac

手动顶!同样的问题

同一个问题。。求解

我在Mac上也遇到这个问题。

按照这个 上面说的 https://stackoverflow.com/questions/37272998/gulp-call-and-retry-last-allocation-failed-process-out-of-memory

gulp build 后面添加 --max_old_space_size=2000的参数,解决了。