Hexo Generate Empty Files

Hexo Generate Empty Files

這篇介紹How to solve Hexo Generate Empty Files。

發生情境

1
2
3
4
5
6
7
8
9
在localhost跑hexo s -> 可正常顯示

使用
$ hexo clean
$ hexo g
$ hexo d

hexo 產生的 HTML 是空白的
push 上 Github Page 才發現

原因

1
node.js 版本過高 > 14.0

解決方法

1
2
重新安裝 node.js 12或13版
即可解決