2017-12-19 1 views
-3

내 컴퓨터의 https://github.com/daattali/beautiful-jekyll.git 프로젝트를 복제 할 때 jekyll serve 프로젝트를 시작하지만 일부 오류가 발생합니다. 지킬을 사용하여 로컬 개발을 원한다면 어떻게해야합니까?지역 개발을 사용하려면 어떻게해야합니까?

오류는 다음과 같습니다

WARN: Unresolved specs during Gem::Specification.reset: 
     jekyll-watch (~> 1.1) 
     rouge (< 3, >= 1.7) 
     rb-fsevent (>= 0.9.4, ~> 0.9) 
     rb-inotify (>= 0.9.7, ~> 0.9) 
WARN: Clearing out unresolved specs. 
Please report a bug if this causes problems. 
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:313:in `check_for_activated_spec!': You have already activated public_suffix 3.0.1, but your Gemfile requires public_suffix 2.0.5. Prepending `bundle exec` to your command may solve this. (Gem::LoadError) 
     from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:31:in `block in setup' 
     from C:/Ruby24-x64/lib/ruby/2.4.0/forwardable.rb:229:in `each' 
     from C:/Ruby24-x64/lib/ruby/2.4.0/forwardable.rb:229:in `each' 
     from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:26:in `map' 
     from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-`enter code here`1.16.0/lib/bundler/runtime.rb:26:in `setup' 
     from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:107:in `setup' 
     from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/jekyll-3.6.2/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler' 
     from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/jekyll-3.6.2/exe/jekyll:11:in `<top (required)>' 
     from C:/Ruby24-x64/bin/jekyll:23:in `load' 
     from C:/Ruby24-x64/bin/jekyll:23:in `<main>' 
+3

오류가 발생했습니다. – jhpratt

+0

StackOverflow에 오신 것을 환영합니다! 지금까지 해봤습니까? StackOverflow는 먼저 자신 만의 문제를 해결하려고합니다. 이미 시도한 것을 보여주기 위해 질문을 업데이트하고 [최소한의 완전하고 검증 가능한 예제] (http://stackoverflow.com/help/mcve)에서 직면 한 특정 문제를 보여주십시오. 자세한 내용은 [좋은 질문을하는 방법] (http://stackoverflow.com/help/how-to-ask)을 참조하고 [사이트 둘러보기] (http://stackoverflow.com/tour)를 참조하십시오.). –

+1

"일부 오류"는별로 도움이되지 않습니다. 질문을 편집하고 정확한 오류 메시지를 추가하십시오. – Chris

답변

0

내 질문을 해결했다. 먼저 Gemfile 파일에 코드를 추가해야합니다. 코드는 다음

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] 

입니다 : 당신이 시작 bundle exec jekyll serve를 사용합니다. 그 후에는 지역 개발을 사용할 수 있습니다.

관련 문제