hexo d命令报错:ERROR Deployer not found: git

问题

使用hexo dhexo deploy命令时报错:

ERROR Deployer not found: git

解决

安装hexo-deployer-git

npm install --save hexo-deployer-git

_config.yml配置中将deploytypegithub改为git

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

将其中的YOUR_ID改成你自己的GitHub账号

posted @ 2019-05-15 14:30  tiancixiong  阅读(140)  评论(0)    收藏  举报