Skip to content

hexo deploy #1503

Closed
Closed
@xiaoliuzi

Description

@xiaoliuzi

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

KavinHan commented on Sep 17, 2015

@KavinHan

I'm also get this error on my window 10 system.
Subscribe this problem.^^

xiaoliuzi

xiaoliuzi commented on Sep 17, 2015

@xiaoliuzi
Author

@KavinHan Yes, my os is Windows 10,too.

xiaoliuzi

xiaoliuzi commented on Sep 18, 2015

@xiaoliuzi
Author

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://git@github.com/xiaoliuzi/xiaoliuzi.github.io
branch: master

Reference:

kemayo/sublime-text-git#176

http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password

baininghan

baininghan commented on Sep 24, 2015

@baininghan

@xiaoliuzi 我试过了你的方法,没有用处。

Xuanwo

Xuanwo commented on Sep 25, 2015

@Xuanwo
Contributor

add git in path

xiaoliuzi

xiaoliuzi commented on Sep 25, 2015

@xiaoliuzi
Author

@baininghan Please show your error message.

wzming2000

wzming2000 commented on Jul 30, 2016

@wzming2000

我参考你的方法,成功啦!

xiaoliuzi

xiaoliuzi commented on Jul 30, 2016

@xiaoliuzi
Author

@wzming2000 I'm glad it helped. :)

Zengbz

Zengbz commented on Dec 30, 2016

@Zengbz

Thank you very much 小六子

zongzi531

zongzi531 commented on May 7, 2017

@zongzi531

@xiaoliuzi thanks. it's work. :)

Jason-Zeng

Jason-Zeng commented on May 19, 2017

@Jason-Zeng

Tank you very much
win7-64
repo: ssh://git@github.com/Jason-Zeng/Jason-Zeng.github.io
This method is successful.

yinzhijiang

yinzhijiang commented on Sep 21, 2017

@yinzhijiang

thank you

vaa

vaa commented on Nov 9, 2017

@vaa

thank you

shooterRao

shooterRao commented on Feb 23, 2018

@shooterRao

解决了,谢谢@xiaoliuzi

yangtao2o

yangtao2o commented on Jul 8, 2018

@yangtao2o

解决了,非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @KavinHan@baininghan@Xuanwo@xiaoliuzi@Zengbz

        Issue actions

          hexo deploy · Issue #1503 · hexojs/hexo