执行命令:
hexo deploy
异常:
_config.yml
文件:
空格没问题的,但是就是报错,求助!!!
追加问题:
设置了环境变量后:
百度说是需要git init
然后我执行git init
可再次执行hexo d
还是出现错误:
并且在git init
后的hexo d
中间有大量的警告操作!
迷茫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;
高洛峰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.
大家讲道理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