V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
anthonyeef
V2EX  ›  问与答

Hexo 3.0: ERROR Deployer not found: git

  •  
  •   anthonyeef · 2015-04-21 10:20:22 +08:00 · 8741 次点击
    这是一个创建于 3299 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    求有效的解决方法:)

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

    如果你用的不是默认 theme ,重新 clone 一个完整的,最好是去项目主页下个完整的 .zip 。
    anthonyeef
        4
    anthonyeef  
    OP
       2015-04-21 14:24:21 +08:00 via Android
    @dtdnqsb 我也觉得有可能是因为用了非默认theme的原因,但具体问题不明
    anthonyeef
        5
    anthonyeef  
    OP
       2015-04-21 14:24:47 +08:00 via Android
    @weyou 晚上回去我换默认theme试试
    Tiande
        6
    Tiande  
       2015-04-21 14:29:33 +08:00   ❤️ 1
    @anthonyeef 第三方 theme 在 git clone http...的时候,会断掉...
    所以还是建议下个 .zip 自解压,感觉比 clone http 要快,要完整。
    anthonyeef
        7
    anthonyeef  
    OP
       2015-04-23 07:20:34 +08:00
    @dtdnqsb 我不明白发生了什么,但是刚刚重新配置了一下_config.yml里的内容,去掉所有中文的字样,重新试了一下就没问题了。有搜到一篇帖子说是因为有中文出现的缘故。
    Tiande
        8
    Tiande  
       2015-04-23 07:28:02 +08:00 via iPhone   ❤️ 1
    @anthonyeef 问题解决就好 ;)
    hizoubin
        9
    hizoubin  
       2016-12-31 18:03:03 +08:00
    npm install hexo-deployer-git --save 改了之后执行,然后再部署试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   910 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:12 · PVG 03:12 · LAX 12:12 · JFK 15:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.