天天看點

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

問題

使用

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賬号