问题
使用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: git@github.com:YOUR_ID/YOUR_ID.github.io.git
branch: master
将其中的
YOUR_ID改成你自己的GitHub账号
最后
以上就是执着夕阳最近收集整理的关于hexo d命令报错:ERROR Deployer not found: git的全部内容,更多相关hexo内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复