ERROR Deployer not found: git

在执行Hexo一键部署时出现以下错误:

1
2
3
$ hexo d
INFO Validating config
ERROR Deployer not found: git

原因是未安装hexo-deployer-git,通过以下命令安装后重新部署即可。

1
npm install hexo-deployer-git --save