0

我正在尝试使用 Jekyll 主题,但是当我运行时,bundle install我得到以下信息

Your Gemfile lists the gem jekyll-shell-theme (>= 0) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once.
While it's not a problem now, it could cause errors if you change the version of one of them later.

[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice coming from different sources.
You specified that jekyll-shell-theme (>= 0) should come from source at `.` and
. Bundler cannot continue.

 #  from C:/Users/jerbin/Projects/jordan-tc.github.io/Gemfile:8
 #  -------------------------------------------
 #    gem 'jemoji'
 >  end
 #  # frozen_string_literal: true
 #  -------------------------------------------

Gemfile 在下面,没有重复,所以我很困惑。我怎样才能解决这个问题?

# frozen_string_literal: true

source "https://rubygems.org"
gemspec

# Including GitHub Pages gem
gem "github-pages", group: :jekyll_plugins
gem "jekyll-shell-theme"

# Plugins used by the theme
group :jekyll_plugins do
  gem 'jemoji'
end
4

0 回答 0