搭建 hexo,在执行 hexo deploy 后,出现 error deployer not found:github 的错误

原因

今天尝试使用hexo搭建github pages,本地调试没什么问题,但是最后部署时报“error deployer not found:github”的错误,到网上原因,发现是hexo的版本升级导致的。

解决方案

步骤一

安装依赖插件
npm install hexo-deployer-git --save

步骤二

修改_config.yml,deploy的type由github改为git
deploy:
  type: git
  repository: [email protected]:fengdroid/fengdroid.github.io.git
  branch: master

步骤三

重新部署
hexo deploy




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章