When you run hexo g, you might get the following error:
hexo g
call_and_retry_last allocation failed - javascript heap out of memory
Try to run export NODE_OPTIONS=--max-old-space-size=8192
export NODE_OPTIONS=--max-old-space-size=8192