使用 Hexo 和 GitHub 搭建博客,出现 hexo -d 报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/efine_dxq/article/details/79095554

问题描述

G:\blog>hexo d
INFO Deploying: git
INFO Setting up Git deployment…
‘git’ �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
FATAL Something’s wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: spawn git ENOENT
at notFoundError (G:\blog\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (G:\blog\node_modules\cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (G:\blog\node_modules\cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)


解决方案

  1. 删除你hexo 下面的.deploy_git文件夹
  2. 运行 $ git config –global core.autocrlf false
    未加载
  3. 重新
    hexo clean
    hexo g
    hexo d
  4. 打开自己的网址,进行验证是否成功

猜你喜欢

转载自blog.csdn.net/efine_dxq/article/details/79095554