node - build内存不足的问题: --max-old-space-size=8192

访问量: 221

今天, npm run build 遇到下面错误:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF61507121A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4810
2: 00007FF61504A5B6 node::MakeCallback+4518

解决办法:

修改  package.json, 增加这一行: --max-old-space-size=8192

例如:

订阅/RSS Feed

Subscribe

分类/category