0
点赞
收藏
分享

微信扫一扫

【记录】Hexo + GitHub page 常见问题及搭建方 for Mac

丹柯yx 2022-03-30 阅读 43
githubgit

常见问题

1.(base) root@localhost .ssh # ssh -T git@github.com git@github.com: Permission denied (publickey).
solution github repository上 code选择ssh而并不是HTTP。同时每次尝试前要删掉原有的.ssh,重新创建。并且不能在root下使用命令,需要在user下使用命令。
2. hexo d : FATAL { err: Error: Spawn failed at ChildProcess.<anonymous> (/Users/chenchen/hexo/blog/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (node:events:526:28) at Process.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
不能在root下运行!
在hexo中创建myblog目录后先
chmod -R 777 blog/ 给目录权限,完成提交。
3. _config.yml中

# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
  type: git
  repository: git@github.com:YOURNAME/YOURNAME.github.io.git
  branch: main
## 前面设置了SSH以后这边的repo用git@github.com
  1. Error Plugin load failed hexo renderer Sass
    1. Remove your node_modules folder, and modify the package.json: "hexo-renderer-sass": "github:cocowool/hexo-renderer-sass",
    2. npm install [use root!!!]
举报

相关推荐

0 条评论