問題
使用
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賬号