天天看点

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

问题

使用

hexo d

hexo deploy

命令时报错:

ERROR Deployer not found: git

解决

安装

hexo-deployer-git

npm install --save hexo-deployer-git           

_config.yml

配置中将

deploy

type

github

改为

git

deploy
  type: git
  repository: [email protected]:YOUR_ID/YOUR_ID.github.io.git
  branch: master           
将其中的

YOUR_ID

改成你自己的GitHub账号