记录一些部署博客和日常使用遇到的一些错误信息,备忘记录一下,不定时更新

错误一

hexo部署网站博客时执行:hexo clean && hexo g && hexo d,结果最后一步报错:ERROR Deployer not found: git

解决方法:

  1. sudo install – save hexo-deployer-git
  2. 然后再运行执行即可

错误二

显示信息:extends includes/layout.pug block content include includes/recent-posts.pug include includes/partial

解决方法:

执行如下命令

npm install --save hexo-renderer-jade hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archive

清除缓存:hexo clean

生成静态文件即可:hexo g

image-20220730004954029

错误三

执行 hexo d 上传 github 的时候出现下面信息:

image-20220730005024039

解决方法:

这个提示是网络问题,重新执行 hexo d 就可以,直到上传成功。