Я думаю, что моя главная проблема в том, что jekyll 4 не поддерживается страницами github. Это нормально для меня, но как мне понизить jekyll, чтобы он работал независимо?
Я попытался следовать приведенным здесь инструкциям: https://github.com/github/pages-gem/issues/577
, которые в основном, кажется, предлагают использовать старую версию jekyll,Я в порядке, но кажется, что пачка отказывается подчиняться мне, и я не знаю почему, или я попадаю в странный цикл, из которого я не могу выйти.
Итак, главная ошибка, которую я получаю, это:
$ bundle
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
You have requested:
jekyll ~> 3.8.5
The bundle currently has jekyll locked at 4.0.0.
Try running `bundle update jekyll`
If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
но кажется, что я заблокирован до 4. Я попытался разблокировать, но я не могу заставить это работать. Моя последняя попытка следующая:
$ gem install jekyll -v 3.8.5
Fetching kramdown-1.17.0.gem
Fetching jekyll-3.8.5.gem
Fetching sass-listen-4.0.0.gem
Fetching sass-3.7.4.gem
Fetching jekyll-sass-converter-1.5.2.gem
Fetching i18n-0.9.5.gem
Successfully installed kramdown-1.17.0
Successfully installed sass-listen-4.0.0
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
https://sass-lang.com/blog/posts/7828841
Successfully installed sass-3.7.4
Successfully installed jekyll-sass-converter-1.5.2
Successfully installed i18n-0.9.5
Successfully installed jekyll-3.8.5
Parsing documentation for kramdown-1.17.0
Installing ri documentation for kramdown-1.17.0
Parsing documentation for sass-listen-4.0.0
Installing ri documentation for sass-listen-4.0.0
Parsing documentation for sass-3.7.4
Installing ri documentation for sass-3.7.4
Parsing documentation for jekyll-sass-converter-1.5.2
Installing ri documentation for jekyll-sass-converter-1.5.2
Parsing documentation for i18n-0.9.5
Installing ri documentation for i18n-0.9.5
Parsing documentation for jekyll-3.8.5
Installing ri documentation for jekyll-3.8.5
Done installing documentation for kramdown, sass-listen, sass, jekyll-sass-converter, i18n, jekyll after 8 seconds
6 gems installed
, но после того, как я попытался связать свой Gemfile
с помощью команды bundle
, я получаю следующую ошибку:
$ gem install jekyll -v 3.8.5
Fetching kramdown-1.17.0.gem
Fetching jekyll-3.8.5.gem
Fetching sass-listen-4.0.0.gem
Fetching sass-3.7.4.gem
Fetching jekyll-sass-converter-1.5.2.gem
Fetching i18n-0.9.5.gem
Successfully installed kramdown-1.17.0
Successfully installed sass-listen-4.0.0
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
https://sass-lang.com/blog/posts/7828841
Successfully installed sass-3.7.4
Successfully installed jekyll-sass-converter-1.5.2
Successfully installed i18n-0.9.5
Successfully installed jekyll-3.8.5
Parsing documentation for kramdown-1.17.0
Installing ri documentation for kramdown-1.17.0
Parsing documentation for sass-listen-4.0.0
Installing ri documentation for sass-listen-4.0.0
Parsing documentation for sass-3.7.4
Installing ri documentation for sass-3.7.4
Parsing documentation for jekyll-sass-converter-1.5.2
Installing ri documentation for jekyll-sass-converter-1.5.2
Parsing documentation for i18n-0.9.5
Installing ri documentation for i18n-0.9.5
Parsing documentation for jekyll-3.8.5
Installing ri documentation for jekyll-3.8.5
Done installing documentation for kramdown, sass-listen, sass, jekyll-sass-converter, i18n, jekyll after 8 seconds
6 gems installed
okхорошо, я попытаюсь обновить, и я делаю bundle update
:
$ bundle update
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
Bundler could not find compatible versions for gem "jekyll":
In Gemfile:
github-pages was resolved to 4, which depends on
jekyll (= 1.1.2)
jekyll-feed (~> 0.12) was resolved to 0.12.1, which depends on
jekyll (>= 3.7, < 5.0)
Bundler could not find compatible versions for gem "jekyll-feed":
In Gemfile:
github-pages was resolved to 36, which depends on
jekyll-feed (= 0.2.3)
minima (~> 2.5) was resolved to 2.5.0, which depends on
jekyll-feed (~> 0.9)
Bundler could not find compatible versions for gem "tzinfo":
In Gemfile:
tzinfo (~> 1.2)
tzinfo-data was resolved to 1.2019.3, which depends on
tzinfo (>= 1.0.0)
, что застревает у меня ... есть идеи, что делать?
Я также пытался следовать инструкциям вмой Gemfile
безуспешно:
$ bundle update github-pages
Could not find gem 'github-pages'.
, запустив команду, они говорят, я получаю ошибку:
$ bundle update github-pages
Could not find gem 'github-pages'.
Я также запустил этот bundle install
:
$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "jekyll-feed":
In snapshot (Gemfile.lock):
jekyll-feed (= 0.12.1)
In Gemfile:
github-pages was resolved to 36, which depends on
jekyll-feed (= 0.2.3)
minima (~> 2.5) was resolved to 2.5.1, which depends on
jekyll-feed (~> 0.9)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "kramdown":
In snapshot (Gemfile.lock):
kramdown (= 2.1.0)
In Gemfile:
github-pages was resolved to 8, which depends on
kramdown (= 1.0.2)
minima (~> 2.5) was resolved to 2.5.1, which depends on
jekyll-feed (~> 0.9) was resolved to 0.12.1, which depends on
jekyll (>= 3.7, < 5.0) was resolved to 4.0.0, which depends on
kramdown (~> 2.1)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "minima":
In snapshot (Gemfile.lock):
minima (= 2.5.1)
In Gemfile:
minima (~> 2.5)
github-pages was resolved to 94, which depends on
minima (= 1.0.1)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Я также сделал:
gem install github-pages
, который установил ... не уверен, что это ухудшило ситуацию ...
Ресурсы IМне уже помогали:
, но ни одна из них еще не решила мою проблему.