Hexo部署博客到Github项目上出现失败的解决方案。主要错误提示如下:
fatal: could not read Username for ‘https://github.com’: No error
fatal{err: Error : Spawn failed …}
一、错误说明
在上传Hexo博客到搭建到 Github 的项目时,已经使用 hexo s
预览成功了,但在 hexo d
部署到个人博客的时候出现了以下问题:
fatal: could not read Username for ‘https://github.com’: No error
二、修改配置
按照提示,先查看自己的博客配置文件 _config.yml
,在文件最底处修改内容如下:
deploy:
type: git
repo: [email protected]:your