hexo发生error:spawn failed错误的解决方法
小老头 Lv3

问题描述:

因为今天得空,合计弄一下自己的小破站点的关于页面,关于页面编辑好之后,在用hexo的部署命令hexo d 的时候出现了一个err: Error: Spawn failed的错误,这个就有点让我崩溃了,心想着咱弄一个小破站点咋就那么多崩溃的BUG啊!

hexo发生error:spawn failed错误的解决方法

感觉好难啊,尤其是像我这种连初中都没毕业的一个文盲,在捣鼓这个小破站点的时候不是这出现问题,就是那里出现问题。

但是出现问题咱就得解决问题不是么?于是乎用上了咱们的百度大法,找问题的解决方法。

按照前辈们的解决方案来说,应该是因为git进行push或者hexo d的时候改变了一些.deploy_git文件下的内容。

解决办法:

  1. 删除.deploy_git文件夹;
  2. 输入git config --global core.autocrlf false
  3. 然后,依次执行:
    hexo clean
    hexo g
    hexo d

问题解决。暴力直接,有效。

《原文链接:https://blog.csdn.net/HTL2018/article/details/106876940》


.article-copyright-info-container { position: relative; width: 100%; box-sizing: border-box; padding: 10px 6px; font-size: 1rem; background: var(--second-background-color); &::after { position: absolute; top: 0; left: 0; content: ''; width: 6px; height: 100%; background: var(--copyright-info-color); } ul { margin-left: 10px; li { margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--default-text-color); .license { font-weight: bold; } &:last-child { margin-bottom: 0; } } } }
 评论