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