해결된 질문
작성
·
548
·
수정됨
0
PS C:\project\hwanklim.github.blog\hwanklim.github.io\hwanklim.github.io> bundle exec jekyll serve
jekyll 4.3.2 | Error: (C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/_config.yml): did not find expected key while parsing a block mapping at line 15 column 1
C:/Ruby32-x64/lib/ruby/3.2.0/psych/parser.rb:62:in `_native_parse': (C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/_config.yml): did not find expected key while parsing a block mapping at line 15 column 1 (Psych::SyntaxError)
from C:/Ruby32-x64/lib/ruby/3.2.0/psych/parser.rb:62:in `parse'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:143:in `load'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `block in load_file'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `open'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb:157:in `load_file'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:129:in `safe_load_file'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:167:in `read_config_file'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:198:in `block in read_config_files'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:195:in `each'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:195:in `read_config_files'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/lib/jekyll.rb:118:in `configuration'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:44:in `configuration_from_options'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/bin/jekyll:25:in `load'
from C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/vendor/bundle/ruby/3.2.0/bin/jekyll:25:in `<main>'
이런게 계속 뜨는데 뭐가 문제 인지 모르겠습니다. config.yml 파일도 딱히 오타가 안보여서 고민입니다.
comments:
provider : "disqus" # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "giscus", "custom"
disqus:
shortname : "hwanklimnote"
discourse:
server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org
facebook:
# https://developers.facebook.com/docs/plugins/comments
appid : #
num_posts : # 5 (default)
colorscheme : # "light" (default), "dark"
utterances:
theme : # "github-light" (default), "github-dark"
issue_term : # "pathname" (default)
staticman:
branch : # "master"
endpoint : # "https://{your Staticman v3 API}/v3/entry/github/"
특히 15번 minimal_mistakes_skin부터 31번 comments까지 앞에 #만 붙여서 주석처리하면 bundle exec jekyll serve가 잘 돌아갑니다.
근데 comments의 어떤 부분이 문제인지는 모르겠습니다..
답변 1
0
안녕하세요?
에러메시지 상으로는
C:/project/hwanklim.github.blog/hwanklim.github.io/hwanklim.github.io/_config.yml): did not find expected key while parsing a block mapping at line 15 column 1 (Psych::SyntaxError)
_config.yml 에 15 라인에 문법 오류가 있다고 뜹니다.
15~ 33번 라인에 주석을 하면 잘 돌아간다고 하셨는데요.
제가 공유해 드리는 코드를 복붙 하고 수정할 부분만 다시 한 번 수정해 보세요.
가끔 잘 안보이는 특수문자. 허용되지 않은 ""와 비슷한 글자 등이 삽입 될 수 있습니다.
보통 이런경우 복붙하는 과정에서 이상한 문자가 섞여 들어갈 수 있습니다.
한번 코드를 새로 복붙하신 후에, 필요한 내용은 직접 타이핑해서 변경해 보세요
제 예시를 공유 드립니다.
# theme : "minimal-mistakes-jekyll"
# remote_theme : "mmistakes/minimal-mistakes"
minimal_mistakes_skin : "contrast" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise"
# Site Settings
locale : "ko-KR"
title : "테디노트"
title_separator : "-"
subtitle : "데이터와 인공지능을 좋아하는 개발자 노트"
name : "테디노트"
description : "데이터와 인공지능을 좋아하는 개발자 노트"
url : "https://teddylee777.github.io"
baseurl : # the subpath of your site, e.g. "/blog"
repository : "teddylee777/minimal-mistakes"
teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png"
logo : # path of logo image to display in the masthead, e.g. "/assets/images/88x88.png"
masthead_title : # overrides the website title displayed in the masthead, use " " for no title
breadcrumbs : true
words_per_minute : 200
감사합니다. 말씀하신대로 하니 고쳐졌습니다 ㅠㅠ