Hexo 部署命令 hexo deploy 执行报错
Hexo 发布内容到 github,执行 hexo deploy 命令后报错
搞了一晚上还是没解决,墙头都翻烂了,真是百撕不得骑姐啊,各路大仙有没有遇到过这个问题,跪求解决方案...
这是Deployment配置项
deploy:
type: git
repository: https://github.com/lanhouzi/lanhouzi.github.com.git
branch: master
下图 是 git bash 的截图
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. (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. (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)
Give them a try:
Bold(Ctrl+B) andItalic(Ctrl+I)
Quotes (Ctrl+Q)
Code blocks (Ctrl+K)
Headings 1, 2, 3 (Ctrl+1,Ctrl+2,Ctrl+3)
Lists (Ctrl+UandCtrl+Shift+O)
See your changes instantly with LivePreview
Don't guess if yourhyperlink syntaxis correct; LivePreview will show you exactly what your document looks like every time you press a key.
Make it your own
Fonts, color schemes, layouts and stylesheets are all 100% customizable so you can turn MarkdownPad into your perfect editor.
A robust editor for advanced Markdown users
MarkdownPad supports multiple Markdown processing engines, including standard Markdown, Markdown Extra (with Table support) and GitHub Flavored Markdown.
With a tabbed document interface, PDF export, a built-in image uploader, session management, spell check, auto-save, syntax highlighting and a built-in CSS management interface, there's no limit to what you can do with MarkdownPad.
网友评论