我是新手Jekyll
,我正在尝试为我的测试项目安装新主题,以便找到更适合的主题。
基本上,这是我遵循的程序:
- 下载(或克隆)主题的来源
~/gems/gems/
- 进入
~/gems/gems/<new_theme>
目录 - 跑
bundle install
- 如果可行,请转到我的项目文件夹并
- 编辑
Gemfile
和_config.yml
名称 - 跑
bundle install
到目前为止,我尝试了至少 5-6 个主题,但都没有奏效。大多数时候我得到这种错误:
Bundler could not find compatible versions for gem "jekyll":
In snapshot (Gemfile.lock):
jekyll (= 4.0.0)
In Gemfile:
jekyll (~> 4.0.0)
jekyll-theme-clean-blog was resolved to 4.0.1, which depends on
jekyll (~> 3.6)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
但我无法理解。
Gemfile.lock
表示版本jekyll
是 4.0.0
Gemfile
表示所需版本jekyll
大于或等于 4.0.0 -> OK
jekyll-theme-clean-blog
取决于jekyll
大于或等于 3.6 -> OK
那么为什么会失败呢?如依赖链所述,我的 4.0.0 版本大于 3.6。我的错在哪里?