[GithubPages] Jekyll 에러 해결방법

September 05 2021

Jekyll serve명령어를 실행할 때 발생한 error의 해결방법에 대해 정리해보았다.

GitHub Metadata: No GitHub API~ 발생

error 메세지

GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.

해결방법

_config.yml 파일 아무 위치에 아래 문구를 추가한다.

github: [metadata]

require’: cannot load such file – webrick (LoadError)

error 메세지

 C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError)

해결방법

아래 명령어 실행

$ bundle add webrick

Liquid Exception: Invalid Date:

error 메세지

  Liquid Exception: Invalid Date: '"2021-09-0"' is not a valid datetime. in /_layouts/single.html
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    Invalid Date: '"2021-09-0"' is not a valid datetime.

해결 방법

_layouts 폴더도 없는데 date형식에 대한 에러가 발생한다. 테마에서의 문제같은데 다음에 찾아봐야겠다.

범인은 나였다ㅎㅎ 에러 해결방법에 대한 글을 포스팅하기 위해서 이 글을 작성할 때 last_modified_at부분의 날짜 형식을 2021-09-0으로 작성해버렸다..2021-09-05로 수정하고 jekyll serve명령어를 실행하니 로컬에서 서버가 잘 작동한다.

Categories:

Updated:

Leave a comment