报错如下:
Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (F:\hexo\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.cp.emit (F:\hexo\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
删除之前的秘钥 重新创建一个
rm -f ~/.ssh/id_rsa.pub
ssh-keygen -t rsa -C "2809…840@qq.com"
然后 在C:\Users\Administrator.ssh 下打开新创建的id_ras.pub文件 复制里面的秘钥 到
你的github主页,进入个人设置 -> SSH and GPG keys -> New SSH key:
将刚复制的内容粘贴到key那里,title随便填,保存。
然后 hexo d -g 解决问题。