如何解决Jekyll重复gem错误但文件中没有重复?
我正在尝试使用 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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。