解决hexo报错spwan failed
2024-09-04 04:58:18
报错1
FATAL {
err: Error: Spawn failed
at ChildProcess.<anonymous> (/usr/local/src/hexo/cairbin/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/cairbin/
##删除git提交文件夹
rm -rf .deploy_git/
git config --global core.autocrlf false
- 最后重新生成提交
hexo clean && hexo g && hexo d
在提交的过程可能又出现以下报错
报错2
! [remote rejected] master -> master (push declined due to email privacy restrictions)
解决方案
- 这是因为你的github设置出了问题
- 浏览器进入github.com
- 登陆github -> "+" ->settings
- 后续操作如下图
- 将下方这两个设置取消勾选
- 重新提交
hexo clean && hexo g && hexo d
大功告成
如果不报错,重新访问页面,就发现已经提交成功了
最新文章
- ABP文档 - Hangfire 集成
- windows8.1下javaweb环境搭建及基本配置(jdk+tomcat+eclipse)
- 驱动学习---PAE--virtual address to physics address
- PHP获取IP地址
- 深入理解php中的ini配置(1)
- ubuntu 更新 rtl8192cu 驱动
- CSS学习笔记之定位
- HTTP层 —— 路由
- 设置button 不可被点击
- css3基础教程十六变形与动画animation
- 招行ODC项目表彰
- SQL Server 数据库定时自动备份【转】
- Xamarin之 环境错误集锦
- angularjs 字段排序 多字段排序
- python 网络编程 IO多路复用之epoll
- IDEA2017.3.5破解
- mingw 构建 gdal 2.1.2
- 解决element-ui upload组件报错 Avoid using non-primitive value as key, use string/number value instead
- usermod命令详解
- [NL系列] RNN &; LSTM 网络结构及应用
热门文章
- JavaWeb——Tomcat使用
- 6月6日 python复习 面向对象
- 《前端运维》五、k8s--1安装与基本配置
- 【算法】两个list合并
- Where和having都是条件筛选关键字,它们有什么分别?
- javax.net.ssl.sslhandshakeException:sun.security.validator.validatorException:PKIX path buildind failed
- 解释基于XML Schema方式的切面实现?
- 两个对象值相同(x.equals(y) == true),但却可以有不同的hashcode?
- BUG战斗史 —— 日期格式与字符串之间的转换
- Kube-OVN:大型银行技术团队推荐的金融级云原生网络方案