wellcome_공부일기

Bundler could not find compatible versions for gem "jekyll-seo-tag": 본문

ETC.ERROR

Bundler could not find compatible versions for gem "jekyll-seo-tag":

ma_heroine 2021. 9. 2. 21:33

jekyll 템플릿을 사용해서 로컬에서 jekyll serve로 실행할려고 할 때, 위 에러를 만났다.

 

(base) Juyeonui-MacBookPro:JHeroine.github.io juyeonlee$ bundle exec jekyll serve
Bundler could not find compatible versions for gem "jekyll-seo-tag":
  In Gemfile:
    plainwhite was resolved to 0.13, which depends on
      jekyll-seo-tag (>= 2.1.0)

Could not find gem 'jekyll-seo-tag (>= 2.1.0)', which is required by gem 'plainwhite', in any of the sources.

** 참고로

jekyll 템플릿을 실행할려면, 해당 파일이 있는 폴더로 이동해서 아래 명령어를 하면 된다. 

보통 템플릿 주인장들이 깃험 readme에 설명을 써주니 잘 읽어보자.

(나는 serve 명령어 뒤에 --trace를 꼭 붙여달라고 경고를 줘서 붙였다.)

(base) Juyeonui-MacBookPro:JHeroine.github.io juyeonlee$ bundle exec jekyll serve --trace

 

그런데 아래와 같은 에러가 떴다. 

Bundler could not find compatible versions for gem "jekyll-seo-tag":
  In Gemfile:
    plainwhite was resolved to 0.13, which depends on
      jekyll-seo-tag (>= 2.1.0)

Could not find gem 'jekyll-seo-tag (>= 2.1.0)', which is required by gem 'plainwhite', in any of the sources.

 

놀랍게도 bundle install 명령어를 치고나서 로컬로 돌리는 명령어를 실행하니 잘 돌아갔다.

(base) Juyeonui-MacBookPro:JHeroine.github.io juyeonlee$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Using public_suffix 4.0.6
Using bundler 2.2.26
Using colorator 1.1.0
Using concurrent-ruby 1.1.9
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using ffi 1.15.4
Using forwardable-extended 2.6.0
Using rb-fsevent 0.11.0
Using rexml 3.2.5
Using liquid 4.0.3
Using unicode-display_width 1.7.0
Using addressable 2.8.0
Using mercenary 0.4.0
Using rouge 3.26.0
Using safe_yaml 1.0.5
Using i18n 1.8.10
Using em-websocket 0.5.2
Using sassc 2.4.0
Using rb-inotify 0.10.1
Using pathutil 0.16.2
Using kramdown 2.3.1
Using terminal-table 2.0.0
Using jekyll-sass-converter 2.1.0
Using listen 3.7.0
Using kramdown-parser-gfm 1.1.0
Using jekyll-watch 2.2.1
Using jekyll 4.2.0
Fetching jekyll-seo-tag 2.7.1
Installing jekyll-seo-tag 2.7.1
Bundle complete! 1 Gemfile dependency, 29 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

알고보니 깃헙 주인장이 readme에 쓰기 전에 설치할 명령어로 bundle install을 말해줬는데

내가 모르고 바로 로컬로 실행시켜서 jekyll seo가 없다는 이상한 에러가 발생한 것이었다.!

 

 

그 후, 다시 실행하니 

Server address: http://127.0.0.1:4000에 잘 나와있는 사이트를 볼 수 있었다. ㅎㅎ

(base) Juyeonui-MacBookPro:JHeroine.github.io juyeonlee$ jekyll serve --trace
Configuration file: /Users/juyeonlee/Desktop/git/JHeroine.github.io/_config.yml
/Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/theme.rb:82:in `rescue in gemspec': The plainwhite theme could not be found. (Jekyll::Errors::MissingDependencyException)
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/theme.rb:79:in `gemspec'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/theme.rb:19:in `root'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/theme.rb:13:in `initialize'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:510:in `new'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:510:in `configure_theme'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:60:in `config='
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:23:in `initialize'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/commands/build.rb:30:in `new'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/commands/build.rb:30:in `process'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `each'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
	from /Users/juyeonlee/.gem/ruby/2.4.0/gems/jekyll-4.2.0/exe/jekyll:15:in `<top (required)>'
	from /Users/juyeonlee/.gem/ruby/2.4.0/bin/jekyll:25:in `load'
	from /Users/juyeonlee/.gem/ruby/2.4.0/bin/jekyll:25:in `<main>'
(base) Juyeonui-MacBookPro:JHeroine.github.io juyeonlee$ bundle exec jekyll serve --trace
Configuration file: /Users/juyeonlee/Desktop/git/JHeroine.github.io/_config.yml
 Theme Config file: /Users/juyeonlee/Desktop/git/JHeroine.github.io/_config.yml
            Source: /Users/juyeonlee/Desktop/git/JHeroine.github.io
       Destination: /Users/juyeonlee/Desktop/git/JHeroine.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 0.448 seconds.
 Auto-regeneration: enabled for '/Users/juyeonlee/Desktop/git/JHeroine.github.io'
    Server address: http://127.0.0.1:4000
  Server running... press ctrl-c to stop.

 

 

깃헙 readme를 정독하자

Comments