【bug fixed】hexo d的时间Spawn failed
在执行hexo d部署的时间,碰到报错:% hexo d
INFOValidating config
INFODeploying: git
INFOClearing .deploy_git folder...
INFOCopying files from public folder...
INFOCopying files from extend dirs...
Site updated: 2024-09-27 16:41:34
4 files changed, 27 insertions(+), 27 deletions(-)
Enumerating objects: 733, done.
Counting objects: 100% (733/733), done.
Delta compression using up to 8 threads
Compressing objects: 100% (415/415), done.
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (733/733), 60.61 MiB | 23.52 MiB/s, done.
Total 733 (delta 185), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (/Users/zhaodongyu/Documents/Blog/node_modules/hexo-util/lib/spawn.js:51:21)
at ChildProcess.emit (node:events:520:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
看信息与 Hexo 的部署到 Git 仓库过程中发生的 RPC failed 错误有关。
错误信息中表现有 60.61 MiB 的数据,这会超过 GitHub 或其他 Git 服务器的默认传输大小限制。
我通过增加 Git 的 HTTP 传输缓冲区大小来办理:
git config --global http.postBuffer 524288000
这会将 Git 的 HTTP 缓冲区增加到 500MB(默认是 1MB)。
问题办理。
假如这样照旧不能办理,在hexo的官网中也有相干讨论:
https://i-blog.csdnimg.cn/direct/15ae8e5865a240ea9d1f544a86cd801a.png
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]