node.js - hexo 3.0 为什么无法部署到github上
天蓬老师
天蓬老师 2017-04-17 13:15:26
0
11
773

$ 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)
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(11)
迷茫

Git does not configure user and email address! Check whether the configuration of the _config.yml file is correct!

小葫芦

Try using git bash to execute hexo d
I have encountered this problem before because I used the windows command line....

迷茫

Search git crlf

Peter_Zhu

I guess you are in trouble. I just finished the deployment and wrote a note. Take a look at www.zhouyalin.com

小葫芦

There may be a problem with your github username configuration. Check your configuration file carefully.

巴扎黑

I remember to use git in hexo configuration. You cannot write https

小葫芦

When you are asked to enter the github password, the device node /dev/tty cannot be opened, and the username and password cannot be entered because you are using Windows and the device node does not exist.

I don’t know if the deployment tool you use is hexo-deployer-git? This problem should be solved now. If it doesn't work, you can report the problem to github.

伊谢尔伦

Change the terminal, such as ps. . .

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

PHPzhong

The folded one, actually I didn’t explain it clearly, I probably changed it like this and it was successful
repository: ssh://git@github.com/Rookiexu/Rookiexu.github.io.git

Ty80

You need to use ssh in the configuration. It seems that http is not working well now.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template