Description
Hello everyone, I met the problem below: can someone help me, please?
PS E:\hexo\blog> hexo deploy
INFO Deploying: git
INFO Setting up Git deployment...
events.js:141
>throw 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.
Activity
KavinHan commentedon Sep 17, 2015
I'm also get this error on my window 10 system.
Subscribe this problem.^^
xiaoliuzi commentedon Sep 17, 2015
@KavinHan Yes, my os is Windows 10,too.
xiaoliuzi commentedon Sep 18, 2015
I have solved it by using this in the _config.yml
repository: ssh://github.com/xiaoliuzi/xiaoliuzi.github.io.git
Change
https
tossh
to
hexo deploy
Now my _config.yml is below:
Reference:
kemayo/sublime-text-git#176
http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password
baininghan commentedon Sep 24, 2015
@xiaoliuzi 我试过了你的方法,没有用处。
Xuanwo commentedon Sep 25, 2015
add git in path
xiaoliuzi commentedon Sep 25, 2015
@baininghan Please show your error message.
wzming2000 commentedon Jul 30, 2016
我参考你的方法,成功啦!
xiaoliuzi commentedon Jul 30, 2016
@wzming2000 I'm glad it helped. :)
Zengbz commentedon Dec 30, 2016
Thank you very much 小六子
zongzi531 commentedon May 7, 2017
@xiaoliuzi thanks. it's work. :)
Jason-Zeng commentedon May 19, 2017
Tank you very much
win7-64
repo: ssh://git@github.com/Jason-Zeng/Jason-Zeng.github.io
This method is successful.
yinzhijiang commentedon Sep 21, 2017
thank you
vaa commentedon Nov 9, 2017
thank you
shooterRao commentedon Feb 23, 2018
解决了,谢谢@xiaoliuzi
yangtao2o commentedon Jul 8, 2018
解决了,非常感谢