使用Hexo+ Github 建站 时 使用 hexo d 命令异常:You should configure deployment settings in _config.yml first! Av

今天莫名其妙的发布博客到github上发现报错了,错误以下:
html

1:排查是否安装一下hexo-deployer-git这个模块
没有安的话装使用指令安装:npm install hexo-deployer-git --savegit

2:检查deploy: 下面的节点 如type:这些 须要缩进。 以前是这种格式github

改为这种格式便可:
npm

最后注意这段配置之间的空格(必定要有空格):hexo

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
  type: git
  repo: git@github.com:imtudou/imtudou.github.io.git
  branch: master
相关文章
相关标签/搜索