Tag Archives: Hexo FATAL ERROR

[Solved] Hexo FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed

After I upgrade npm, an error report:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
0xb00d90 node::Abort() [hexo]

Solution: The cause is memory overflow

Increase memory

sudo npm i -g increase-memory-limit
increase-memory-limit
    Expand the memory for NODE operation
export NODE_OPTIONS=--max_old_space_size=4096

The value should not be too large, which may affect the server operation