hexodwrong

报错内容如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fatal: HttpRequestException encountered.
An error occurred while sending the request.
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
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: fatal: HttpRequestException encountered.
An error occurred while sending the request.
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> (D:\github\blog\hexo\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at ChildProcess.cp.emit (D:\github\blog\hexo\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:921:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

对上面的解决方法是:

1
$ git config http.sslVerify "false"

对于我的配置而言,这条命令并没有运行成功!!!又报了一个错误:

1
fatal: not in a git directory

这可能是因为我的电脑上没有这个目录之类的。

之后我把_config.yml文件中repository:https://github.com/shangrila-xiu/shangrila-xiu.github.io.git这个地址改为git@github.com:shangrila-xiu/shangrila-xiu.github.io.git

结果还是错的,心塞。。。。

我又还原repository的配置: https://github.com/shangrila-xiu/shangrila-xiu.github.io.git,这样就运行通过了。我都有种重新下载的冲动!!!