Hexo 构建过程中报错 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory 如何处理?」的摘要信息

最近在处理 Linux 中国的静态站点,在技术选项上,为了方便修改,选择了 Hexo 来建设。 数据从 Discuz 转换到 Markdown 已经处理好了,但在构建过程中遇到了一些问题,会报如下错误 linux [main] hexo g INFO Validating config INFO Start processing INFO Files loaded in 2.37 min <--- Last few GCs ---> [4685:0x118008000] 188193 ms: Scavenge (reduce) 3974.1 (4131.6) -> 3974.1 (4131.6) MB, 1.96 / 0.00 ms (average mu = 0.143, current mu = 0.117) allocation failure; [4685:0x118008000] 188198 ms: Scavenge (reduce) 3977.5 (4135.0) -> 3977.5 (4135.0) MB, 1.88 / 0.00 ms (average mu = 0.143, current mu = 0.117) allocation failure; [4685:0x118008000] 188202 ms: Scavenge (reduce) 3981.0 (4138.5) -> 3981.0 (4138.5) MB, 1.79 / 0.00 ms (average mu = 0.143, current mu = 0.117) allocation failure; <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near hea...