Hexo 部署命令 hexo deploy 執(zhí)行報(bào)錯(cuò)
Hexo 發(fā)布內(nèi)容到 github,執(zhí)行 hexo deploy 命令后報(bào)錯(cuò)
搞了一晚上還是沒(méi)解決,墻頭都翻爛了,真是百撕不得騎姐啊,各路大仙有沒(méi)有遇到過(guò)這個(gè)問(wèn)題人断,跪求解決方案...
這是Deployment配置項(xiàng)
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.