Hexo 部署命令 hexo deploy 执行报错

Hexo 发布内容到 github,执行 hexo deploy 命令后报错

搞了一晚上还是没解决,墙头都翻烂了,真是百撕不得骑姐啊,各路大仙有没有遇到过这个问题,跪求解决方案…

这是Deployment配置项

1
2
3
4
deploy:
type: git
repository: https://github.com/lanhouzi/lanhouzi.github.com.git
branch: master

下图是 git bash 的截图


hexo deploy 执行报错

这是 git bash 报错代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
BlueMonkey@BlueMonkey-PC MINGW64 /d/GitHub/hexo/hexo (master)
$ hexo d
INFO Deploying: git
INFO Clearing .deploy folder...
INFO Copying files from public folder...
On branch master
Changes not staged for commit:
modified: ../themes/hueman (modified content, untracked content)
no changes added to commit
Fatal: TaskCanceledException 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': Invalid argument
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Fatal: TaskCanceledException 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': Invalid argument
at ChildProcess.<anonymous> (D:\GitHub\hexo\hexo\node_modules\hexo-util\lib\spawn.js:42:17)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
FATAL Fatal: TaskCanceledException 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': Invalid argument
Error: Fatal: TaskCanceledException 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': Invalid argument
at ChildProcess.<anonymous> (D:\GitHub\hexo\hexo\node_modules\hexo-util\lib\spawn.js:42:17)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
分享到