Hexo deployment issues: Error:spawn git ENOENT

Source: Internet
Author: User
Hexo Deployment issues: Error:spawn git ENOENT Preface

In the previous article Hexo the deployment of a free web application on GitHub, there was a problem error:spawn git enoent was not resolved, and the same problem arose when deploying on another machine today, and finally found a solution. Problem Description

Execute Hexo D error

Error:spawn git ENOENT at
    exports._errnoexception (util.js:746:11) at
    Process.childprocess._handle.onexit ( child_process.js:1053:32) at
    child_process.js:1144:20 at
    process._tickcallback (node.js:355:11)

cause Analysis

The specific reason I also say not clear, there is a person on the net to start Git-server, also appeared the same problem. Therefore, HEXO deployment should also be a series of git command collection, need git-server support. Workaround

Add environment variables: C:\Program Files (x86) \git\bin; C:\Program Files (x86) \git\libexec\git-core, this solves the problem. Reference Documents

[Nodejs] A strange event happened in the Windows installation Git-server (solved)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.