Hexo问题解决
不知道什么原因,public文件夹里面没有了index.html。Nginx上会报 403 Forbidden nginx/1.18.0
异常,本地 hexo server
会报 Cannot GET /
。
执行npm audit fix
,查看是否少了什么组件,通过npm install hexo-xxx-xxx
安装即可。(我的hexo缺少了hexo-generator-index组件,因此执行npm install hexo-generator-index即可)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 二号线的猪猪!