hexo Deployer not found: undefined 是什么情况

按照官方文档更改了 config.yml ,然后执行 hexo d 的时候出现错误
'''
[error] Deployer not found: undefined
'''

阅读 6.4k
2 个回答

检查下config.yml的deploy段,是不是type没写或者有拼写错误

需要修改站点 config (即hexo 根目录下的 config)下的 deploy 字段,修改样式如下:

deploy:
  type: git
  repository: git@github.com:xxx/xxx.github.io.git
  branch: master

其中 xxx 为你的 github 标识

之前需要通过
npm install hexo-deployer-git --save安装git支持

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进