一 現象描述
執行hexo g或hexo s時,可能會出現如下情況,導致訪問時出現異常

二 原因預測
-
插件
-
主題
-
markdown文件
三 解決辦法
3.1 插件
3.1.1 查看npm安裝hexo插件的情況
npm ls --depth 0

3.1.2 安裝缺失的插件
npm install acorn --save

3.1.3 再次執行 npm ls --depth 0查看插件安裝情況
3.2 主題(themes)
3.2.1 檢查themes下的主題和配置

3.2.2 下載最新主題並配置_config.yml
git clone https://github.com/theme-next/hexo-theme-next themes/next

3.2.3 執行hexo g查看執行情況(文件能正常生成)

