Hello everyone, I met the problem below: can someone help me, please?
PS E:\hexoblog> hexo deploy
INFO Deploying: git
INFO Setting up Git deployment...
events.js:141throw er; // Unhandled 'error' event
^Error: spawn git ENOENT
at exports._errnoException (util.js:837:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)
The version of npm is 2.14.2.
The part _config.yml is below
Docs: http://hexo.io/docs/deployment.html
deploy:type: git
repository: https://github.com/xiaoliuzi/xiaoliuzi.github.io.git
branch: master
and I have tried to execute the command , and I also create another new folder, but it doesn't work.
npm install hexo-deployer-git --save
Please help me. Thank you.
I'm also get this error on my window 10 system.
Subscribe this problem.^^
@KavinHan Yes, my os is Windows 10,too.
I have solved it by using this in the _config.yml
repository: ssh://github.com/xiaoliuzi/xiaoliuzi.github.io.git
Change https to ssh
to hexo deploy
Now my _config.yml is below:
deploy:
type: git
repository: ssh://[email protected]/xiaoliuzi/xiaoliuzi.github.io
branch: master
Reference:
https://github.com/kemayo/sublime-text-git/issues/176
http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password
@xiaoliuzi 我试过了你的方法,没有用处。
add git in path
@baininghan Please show your error message.
我参考你的方法,成功啦!
@wzming2000 I'm glad it helped. :)
Thank you very much 小六子
@xiaoliuzi thanks. it's work. :)
Tank you very much
win7-64
repo: ssh://[email protected]/Jason-Zeng/Jason-Zeng.github.io
This method is successful.
thank you
thank you
解决了,谢谢@xiaoliuzi
解决了,非常感谢
Most helpful comment
I have solved it by using this in the _config.yml
repository: ssh://github.com/xiaoliuzi/xiaoliuzi.github.io.gitChange
httpstosshto
hexo deployNow my _config.yml is below:
Reference:
https://github.com/kemayo/sublime-text-git/issues/176
http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password