使用 Hexo 和 GitHub 搭建博客,出现 hexo -d 报错如何解决?

能够在本地打开,但是部署不到github上去

******* hexo d的时候报错 *********

$ hexo d
INFO Deploying: git
INFO Clearing .deploy folder...
INFO Copying files from public folder...
warning: LF will be replaced by CRLF in 2015/12/05/hello-world/index.html.
The file will have its original line endings in your working directory.
……
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/script.js.
The file will have its original line endings in your working directory.
On branch master
nothing to commit, working directory clean
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'GitHub · Where software is built': No error
FATAL Something's wrong. Maybe you can find the solution here: Troubleshooting
Error: bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'GitHub · Where software is built': No error

at ChildProcess. (E:\SwuComputer\HTML5\hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:42:17)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)

at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

详细答案:

有关使用 Hexo 和 GitHub 搭建博客,出现 hexo -d 报错如何解决? - 

 https://www.zhihu.com/question/38219432

 

我试了了高票答案,但是发现不行,最后用这个解决了。

 

 

 感谢!!!

你可能感兴趣的:(Hexo)