node.js - hexo在deploy到github总是报错,求助
PHPz
PHPz 2017-04-17 14:40:45
0
3
549

执行命令:

hexo deploy

异常:

_config.yml文件:

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

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

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

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

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

PHPz
PHPz

学习是最好的投资!

reply all(3)
迷茫

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;

小葫芦

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.

大家讲道理

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template