search

Home  >  Q&A  >  body text

node.js - hexo在deploy到github总是报错,求助

执行命令:

hexo deploy

异常:

_config.yml文件:

空格没问题的,但是就是报错,求助!!!

追加问题:
设置了环境变量后:

百度说是需要git init
然后我执行git init

可再次执行hexo d还是出现错误:

并且在git init后的hexo d中间有大量的警告操作!

PHPzPHPz2863 days ago580

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-17 14:42:45

    Thank you for the invitation, but I have succeeded every time, so I can only give you a reference article.
    Refer to these two articles:

    http://www.jianshu.com/p/67c5...

    https://xuanwo.org/2014/08/14...

    Your error problem: spawn git ENOENT

    Cause: Caused by not adding Git environment variables, just add the environment variables of Git and git management library;

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 14:42:45

    Try to obtain the administrator rights of the error folders and try again.
    By the way, I was in the same situation as you last time. I installed hexo on both mac and pc, and that was it.
    The final solution is to reinstall node.js on mac. Reinstalling node.js is quite laborious.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 14:42:45

    It may be a problem with git configuration. Try adding environment variables: C:Program Files (x86)Gitbin;C:Program Files (x86)Gitlibexecgit-core

    reply
    0
  • Cancelreply