问题
使用
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账号