xjtlujoe
V2EX  ›  问与答

hexo d 的问题。。。折磨好几天了。。

  •  
  •   xjtlujoe · Jul 1, 2016 · 19150 views
    This topic created in 3784 days ago, the information mentioned may be changed or developed.

    按照官网的 deployment 的流程,走到 hexo d 的时候死活不行。。。网上查了很多资料,还是不行。

    win 的环境,配置了_config.yml 文件之后, hexo g, hexo d..

    delete mode 100644 placeholder
    warning: LF will be replaced by CRLF in js/script.js.
    The file will have its original line endings in your working directory.
    bash: /dev/tty: No such device or address
    error: failed to execute prompt script (exit code 1)
    fatal: could not read Username for 'https://github.com': Invalid argument
    FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/do                                                        cs/troubleshooting.html
    Error: bash: /dev/tty: No such device or address
    error: failed to execute prompt script (exit code 1)
    fatal: could not read Username for 'https://github.com': Invalid argument
    
    
    17 replies  •  2018-12-21 14:56:06 +08:00
    DoraJDJ
    DoraJDJ
    Jul 1, 2016
    1
    ```
    fatal: could not read Username for 'https://github.com': Invalid argument
    ```

    确定 GitHub 的用户名设定正确了吗
    sophymax
    sophymax
    Jul 1, 2016
    2
    配置不好就直接把那个目录 git 提交就可以了 , 没必要花时间在它上边
    xjtlujoe
    xjtlujoe
    OP
    Jul 1, 2016
    3
    @sophymax 就想知道 hexo d 的问题。。
    kokutou
    kokutou
    Jul 1, 2016
    4
    _config.yml 为啥不贴出来。
    xjtlujoe
    xjtlujoe
    OP
    Jul 1, 2016
    5
    DoraJDJ
    DoraJDJ
    Jul 1, 2016
    6
    @xjtlujoe 应该是没设置用户名,所以提交不上去。
    popu111
    popu111
    Jul 1, 2016
    7
    可以试试 [email protected] ,以及我记得我用 cygwin 就会出错,用 cmd 就啥事没有
    dixyes
    dixyes
    Jul 1, 2016 via Android❤️1
    8
    或许你该试试到.deploy_git 目录手动 push 下试试 看看 git 提示啥错误
    dixyes
    dixyes
    Jul 1, 2016 via Android
    9
    顺便 你该提及下你的 shell 是啥 bash 一直找不到 tty
    xjtlujoe
    xjtlujoe
    OP
    Jul 1, 2016
    10
    @dixyes git bash ,貌似就是 cygwin 的问题。。还是不搞 win 下的了。。。麻烦。。
    dixyes
    dixyes
    Jul 1, 2016 via Android
    11
    @xjtlujoe 还是 msys2 好 我的 hexo 没碰到啥问题(用的自己架的服务器 sshgit
    helloit
    helloit
    Jul 1, 2016
    12
    要这样写:
    ------------------------------------------------------------------------
    deploy:
    type: git
    repo: [email protected]:username/username.github.io.git
    ------------------------------------------------------------------------
    Eugene1024
    Eugene1024
    Sep 10, 2016
    13
    遇到相同的问题,还是没有解决 、、、
    xjtlujoe
    xjtlujoe
    OP
    Sep 10, 2016
    14
    @Eugene1024 把用户名和邮箱都写在 deploy 就行了, win 下我是这么弄的
    springsummer
    springsummer
    Mar 11, 2017❤️1
    15
    type : git
    repo : xxx
    冒号后面一定要两个空格!!!!
    ByteChen
    ByteChen
    Mar 25, 2018
    16
    @springsummer 老哥,稳!完美解决问题!
    EdisonR
    EdisonR
    Dec 21, 2018
    17
    @springsummer 老哥!稳
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1257 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 17:24 · PVG 01:24 · LAX 09:24 · JFK 12:24
    ♥ Do have faith in what you're doing.