Hexo deploy 에러

😡 이슈

Github블로그를 hexo로 관리하고 있었는데 Error: Spawn failed라며 deploy가 안되는 것이다.

🤪 원인

에러가 뜨자마자 원인은 대충 예상되었는데 github에서 2021년 8월 13일부터 비밀번호를 통한 인증을 지원하지 않는다고 했던 사실이 떠올랐기 때문이다. 진즉에 토큰이나 ssh인증을 사용했으면 발생하지 않았을 에러였다.

😇 해결

_config.yml
1
2
3
4
5
6
deploy:
type: git
repo: https://github.com/<username>/<userrepo>.git
branch: main
token: <usertoken>
name: <username>

토큰을 발급받고 _config.yml파일을 수정하여 해결하였다.

참고 :