博客搭建报错问题总结


上传到云端出错

提示1

hexo d后提示

To https://gitee.com/DragonLanQAQ/DragonLanQAQ.git+44bd99d...387e78f HEAD -> master (forced update)
Branch 'master' set up to track remote branch 'master' from 'https://gitee.com/DragonLanQAQ/DragonLanQAQ.git'.

且页面未刷新

解决方案:删除 .deploy_git目录,再执行 hexo d -g就可以了

提示2

hexo从5.0降为4.2后,hexo cl后提示

Plugin load failed: hexo-theme-landscape
Error: EISDIR: illegal operation on a directory, read

解决方案:

​ 先执行

grep -rn "hexo-theme-landscape" 

​ 再进入目录,把hexo-theme-landscape删了就行了


提示3

Error: Spawn failed
at ChildProcess. (C:\Users\Dragon_Lan\blog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.cp.emit (C:\Users\Dragon_Lan\blog\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

提示4

fatal: Could not set SSL backend to ‘openssl’: already set

缓存:

上传云端后图片未更改

解决方案:建议每次生成站点或部署之前都用 hexo clean 命令清理一下缓存,请使用Ctrl + F5清除缓存并刷新页面。



文章作者: 斓龙
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 斓龙 !
  目录