anthonyeef
V2EX  ›  问与答

Hexo 3.0: ERROR Deployer not found: git

  •  
  •   anthonyeef · Apr 21, 2015 · 9505 views
    This topic created in 4215 days ago, the information mentioned may be changed or developed.

    升级到3.0后一直没有办法deploy成功,查了一下说3.0后需要在 _config.yml 中设置 deploy中的type一项为git(而且还要注意空一格),然后npm install hexo-deployer-git --save。都试过了,但还是没有办法。

    看github上hexo的issue也有好多人遇到了这个问题。
    难道只能通过降级来解决?

    求有效的解决方法:)

    Supplement 1  ·  Apr 23, 2015
    已解决:)
    下次问问题之前,一定要尝试“重头到尾老老实实再试一次”这个方法。
    9 replies  •  2016-12-31 18:03:03 +08:00
    weyou
    weyou
    Apr 21, 2015
    1
    具体什么错误信息? 我这里没有问题
    cszhiyue
    cszhiyue
    Apr 21, 2015
    2
    谨慎升级3.0
    Tiande
    Tiande
    Apr 21, 2015
    3
    重新配置下 git 的 name email 。

    如果你用的不是默认 theme ,重新 clone 一个完整的,最好是去项目主页下个完整的 .zip 。
    anthonyeef
    anthonyeef
    OP
    Apr 21, 2015 via Android
    4
    @dtdnqsb 我也觉得有可能是因为用了非默认theme的原因,但具体问题不明
    anthonyeef
    anthonyeef
    OP
    Apr 21, 2015 via Android
    5
    @weyou 晚上回去我换默认theme试试
    Tiande
    Tiande
    Apr 21, 2015❤️1
    6
    @anthonyeef 第三方 theme 在 git clone http...的时候,会断掉...
    所以还是建议下个 .zip 自解压,感觉比 clone http 要快,要完整。
    anthonyeef
    anthonyeef
    OP
    Apr 23, 2015
    7
    @dtdnqsb 我不明白发生了什么,但是刚刚重新配置了一下_config.yml里的内容,去掉所有中文的字样,重新试了一下就没问题了。有搜到一篇帖子说是因为有中文出现的缘故。
    Tiande
    Tiande
    Apr 23, 2015 via iPhone❤️1
    8
    @anthonyeef 问题解决就好 ;)
    hizoubin
    hizoubin
    Dec 31, 2016
    9
    npm install hexo-deployer-git --save 改了之后执行,然后再部署试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3827 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 05:34 · PVG 13:34 · LAX 21:34 · JFK 00:34
    ♥ Do have faith in what you're doing.