찾다

 >  Q&A  >  본문

node.js - hexo 3.0 为什么无法部署到github上

$ hexo d 后出现了这个

warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/script.js.
The file will have its original line endings in your working directory.
On branch master
nothing to commit, working directory clean
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/docs/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

    at ChildProcess.<anonymous> (E:\hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:42:17)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
天蓬老师天蓬老师2782일 전772

모든 응답(11)나는 대답할 것이다

  • 迷茫

    迷茫2017-04-17 13:17:26

    git没有配置用户和邮箱把!在看下_config.yml文件的配置是否正确!

    회신하다
    0
  • 高洛峰

    高洛峰2017-04-17 13:17:26

    试试使用 git bash 执行hexo d
    我之前也遇到过这个问题 是因为使用了windows的命令行....

    회신하다
    0
  • 迷茫

    迷茫2017-04-17 13:17:26

    搜索 git crlf

    회신하다
    0
  • 天蓬老师

    天蓬老师2017-04-17 13:17:26

    估计你弄麻烦了吧,我刚部署好,写了个笔记,你看看www.zhouyalin.com

    회신하다
    0
  • 高洛峰

    高洛峰2017-04-17 13:17:26

    这是你的github用户名配置有问题吧,好好检查一下你的配置文件。

    회신하다
    0
  • 巴扎黑

    巴扎黑2017-04-17 13:17:26

    我记得hexo配置中要用git . 不能写https

    회신하다
    0
  • 高洛峰

    高洛峰2017-04-17 13:17:26

    你这是在要求输入github密码时,打不开设备节点/dev/tty,导致无法输入用户名密码,因为你用的是windows,不存在该设备节点。

    不知道你用的部署工具是不是hexo-deployer-git?现在应该解决的这个问题吧,不行的话,可以来github汇报问题。

    회신하다
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:17:26

    换个终端,比如 ps。。。

    https://www.gehaowu.com/notes/2015/09/MINGW64-HEXO-TTY-ERROR/

    회신하다
    0
  • PHPz

    PHPz2017-04-17 13:17:26

    被折叠那个啊、其实是没说清楚、、我大概是这么改的、就成功了
    repository: ssh://git@github.com/Rookiexu/Rookiexu.github.io.git

    회신하다
    0
  • PHP中文网

    PHP中文网2017-04-17 13:17:26

    在配置中要用ssh,好像现在http都不太行了。

    회신하다
    0
  • 취소회신하다