概述
问题
使用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 d命令报错:ERROR Deployer not found: git所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复