開發與維運

hexo d命令報錯:ERROR Deployer not found: git

問題

使用hexo dhexo deploy命令時報錯:

ERROR Deployer not found: git

解決

安裝hexo-deployer-git

npm install --save hexo-deployer-git

_config.yml配置中將deploytypegithub改為git

deploy
  type: git
  repository: [email protected]:YOUR_ID/YOUR_ID.github.io.git
  branch: master

將其中的YOUR_ID改成你自己的GitHub賬號

Leave a Reply

Your email address will not be published. Required fields are marked *