Установка темы Jekyll «минимальная» приводит к ошибке - PullRequest
0 голосов
/ 06 мая 2020

Я пробовал несколько разных техник из сообщений, мучительно похожих на мои, но, похоже, ничего не работает.

В настоящее время я использую Jekyll 4.0.0, и мне даже не удалось подключить его к страницам github . Я использую учебник Майка Дейна , и я следил за ним в буквальном смысле. Это более старый учебник, поэтому я предполагаю, что в нем были изменения.

Я попытался вернуться к более старой версии Jekyll (3.8.3, как рекомендовано в найденном мною посте), но это дало мне больше ошибок, чем я начал с.

Вот моя текущая ошибка, когда я пытаюсь запустить bundle exec jekyll serve

jekyll 3.8.6 | Error:  The minimal theme could not be found. Traceback (most recent call last):
        23: from C:/Ruby27-x64/bin/jekyll:23:in `<main>'
        22: from C:/Ruby27-x64/bin/jekyll:23:in `load'
        21: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/exe/jekyll:15:in `<top (required)>'
        20: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
        19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
        18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
        17: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
        16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
        15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
        14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `start'
        13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `each'
        12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `block in start'
        11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:30:in `process'
        10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:30:in `new'
         9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:23:in `initialize'
         8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:55:in `config='
         7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:439:in `configure_theme'
         6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:439:in `new'
         5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:12:in `initialize'
         4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:19:in `root'
         3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:82:in `gemspec'
         2: from C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/specification.rb:988:in `find_by_name'
         1: from C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec' C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'minimal' (>= 0) among 85 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=C:/Ruby27-x64/lib/ruby/gems/2.7.0;C:/Users/David/.gem/ruby/2.7.0', execute `gem env` for more information
        21: from C:/Ruby27-x64/bin/jekyll:23:in `<main>'
        20: from C:/Ruby27-x64/bin/jekyll:23:in `load'
        19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/exe/jekyll:15:in `<top (required)>'
        18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
        17: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
        16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
        15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
        14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
        13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
        12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `start'
        11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `each'
        10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/serve.rb:93:in `block in start'
         9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:30:in `process'
         8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/commands/build.rb:30:in `new'
         7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:23:in `initialize'
         6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:55:in `config='
         5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:439:in `configure_theme'
         4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/site.rb:439:in `new'
         3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:12:in `initialize'
         2: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:19:in `root'
         1: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:81:in `gemspec' C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-3.8.6/lib/jekyll/theme.rb:84:in `rescue in gemspec': The minimal theme could not be found. (Jekyll::Errors::MissingDependencyException)

Извините за большой блок, но я относительно новичок и не совсем уверен, что важно . Из нескольких руководств я подтвердил, что правильно ввел тему в файл драгоценного камня.

Я установил файл драгоценного камня с помощью `bundle install ', и он правильно установил его.

I использовал bundle info jekyll-theme-minimal, чтобы установить его, и мне не повезло.

Извините, если есть идентичный этому пост, но я нашел многих с точно такой же проблемой, которые были решены тем, что я уже сделал . Я обещаю, что просмотрел другие сообщения перед тем, как сделать это.

Примечание:

Работает на Windows 10 Home

gem 3.1.2

ruby 2.7.1p83

выполнение jekyll -v дает ошибку, которая может быть частью той же проблемы.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...