This happened because somehow db.json file is missing in mime-db modules... You can create a db.json file or install mime-db module in a different location and copy db.json from there.
The file will have its original line endings in your working directory [master 1478afb] Site updated: 2023-01-29 19:05:14 4 files changed, 5 insertions(+), 5 deletions(-) rewrite search.json (83%) git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. FATAL { err: Error: Spawn failed at ChildProcess.<anonymous> (C:\_DATA\Github\GitIoSrc\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (node:events:513:28) at cp.emit (C:\_DATA\Github\GitIoSrc\node_modules\cross-spawn\lib\enoent.js:34:29) at ChildProcess._handle.onexit (node:internal/child_process:291:12) { code: 128 } } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
HUNGCHIA@DESKTOP-O82RRBG MINGW64 /c/_DATA/Github/GitIoSrc (master) $ ssh-add ~/.ssh/github Could not open a connection to your authentication agent.
HUNGCHIA@DESKTOP-O82RRBG MINGW64 /c/_DATA/Github/GitIoSrc (master) $ ssh -T git@github.com Hi HankChangGSS! You've successfully authenticated, but GitHub does not provide shell access.
可以看到,一開始要 deploy 會報錯,沒權限 再來執行
1
ssh-add ~/.ssh/github
會出現
1
Could not open a connection to your authentication agent.