hexojs / hexo-deployer-git

Git deployer plugin for Hexo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

err: Error: Spawn failed at ChildProcess.<anonymous>

reinsss opened this issue · comments

commented

Check List

Please check followings before submitting a new issue.

Question

error message:

[master 3d5a622] Site updated: 2020-10-03 20:27:08
 2 files changed, 2 insertions(+), 2 deletions(-)
fatal: could not read Username for 'https://github.com': No such file or directory
FATAL {
  err: Error: Spawn failed
      at ChildProcess.<anonymous> (C:\CODE\blog\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21)
      at ChildProcess.emit (events.js:315:20)
      at ChildProcess.cp.emit (C:\CODE\blog\node_modules\cross-spawn\lib\enoent.js:34:29)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) {
    code: 128
  }
}

I'm pretty new to this. Don't know how to solve it after trying several methods.

Environment & Settings

Node.js & npm version

Node.js version v12.18.4.
npm version 6.14.6

Hexo and Plugin version(npm ls --depth 0)

hexo version 5.2.0

@reinsss

Please check your deploy settings.
I think the below issue will help you :)

hexojs/hexo#2778

commented

There is a discussion about it: #71
I'm closing this issue. Please join the discussion there :)

FATAL {
err: Error: Spawn failed
at ChildProcess. (E:\myBlog\codefishyyfBlog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (events.js:375:28)
at ChildProcess.cp.emit (E:\myBlog\codefishyyfBlog\node_modules\cross-spawn\lib\enoent.js:34:29)
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
报了这个错,不知道怎么解决

I have used many solutions but not worked.
The following method works for me.
My computer connects my mobile phone's hotspot, and succussed

commented

Error: Spawn failed
at ChildProcess. (/data/data/com.termux/files/home/blog/node_modules/hexo-util/lib/spawn.js:51:21)
at ChildProcess.emit (node:events:513:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
emm不知道为什么

Error: Spawn failed at ChildProcess. (/data/data/com.termux/files/home/blog/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (node:events:513:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) emm不知道为什么

报错下面还有错误代码, 你没粘贴上来.
你可以试试用手机给电脑开热点, 这对我有用

Error: Spawn failed at ChildProcess. (/data/data/com.termux/files/home/blog/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (node:events:513:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) emm不知道为什么

可以试试用手机给电脑开热点

跟网络有关:打开/关闭代理重试