Hexo部署出现错误err-Error-Spawn-failed解决方式
生活随笔
收集整理的這篇文章主要介紹了
Hexo部署出现错误err-Error-Spawn-failed解决方式
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Hexo部署出現錯誤err: Error: Spawn failed解決方式
部署過程中可能會出現錯誤
fatal: unable to access 'https://github.com/a956551943/a956551943.github.io/': Encountered end of file FATAL {err: Error: Spawn failedat ChildProcess.<anonymous> (/usr/local/src/hexo/hanyubolg/node_modules/hexo-util/lib/spawn.js:51:21)at ChildProcess.emit (events.js:376:20)at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {code: 128} } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html解決方式一:
##進入站點根目錄 cd /usr/local/src/hexo/hanyubolg/ ? ##刪除git提交內容文件夾 rm -rf .deploy_git/ ? ##執行 git config --global core.autocrlf false ? ##最后 hexo clean && hexo g && hexo d解決方式二:有可能是你的git repo配置地址不正確,可以將http方式變更為ssh方式
##進入站點根目錄 cd /usr/local/src/hexo/hanyubolg/ ? ##刪除git提交內容文件夾 vim _config.yml ? ##修改 deploy: ? type: git ? repo: https://github.com/yourname/yourname.github.io.git -> git@github.com:a956551943/weixiaohui.github.io.git ? branch: master ? ##最后 hexo clean hexo g hexo d解決方式三:不建議
##進入站點根目錄 cd /usr/local/src/hexo/hanyubolg/ ? ##進入depoly文件夾 cd .deploy_git/ ? ##強制推送 git push -f文章來源:www.jianshu.com, 作者:翰羽,版權歸原作者所有,如需轉載,請聯系作者。
原文鏈接: https://www.jianshu.com/p/c60ad2a33a1e
總結
以上是生活随笔為你收集整理的Hexo部署出现错误err-Error-Spawn-failed解决方式的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql sql高级应用程序_mysq
- 下一篇: java集合清空_java 集合删除数据