使用 Hexo 和 GitHub 搭建博客,出現 hexo -d 報錯

問題描述

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. 打開自己的網址,進行驗證是否成功
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章