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.
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