1988's Studio.

hexo-github遇到的问题

2018/08/16

我来解释一下前段时间一直没有更博的原因!
这个hexo deploy出问题。。

fatal: could not read Username for ‘https://github.com‘: No error
FATAL Something’s wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: fatal: HttpRequestException encountered.
ʱ
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‘: No error

at ChildProcess.<anonymous> (C:\Hexo\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at ChildProcess.cp.emit (C:\Hexo\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:920:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)

就这几行代码。

本来先是尝试了删除.deploy_git 这个文件的方法,但是没有解决问题。

然后又是什么邮箱账号密码登录出错的原因,试了这些,依然没有作用。就先搁置了这个问题,想着先慢慢写博文,之后解决了再发布。

于是拖到了八月份的这天。

我又开始尝试,结果居然问题出在了我从来没想到地方,是在_config.yml这个配置文件的最后两行,
deploy:
type: git
repository: git@github.com:ly1988/ly1988.github.io.git
branch: master

开始的repo是这样的:https://github.com/username/
之前一直没有问题。不过现在解决了。

CATALOG