【发布时间】:2020-01-26 15:09:24
【问题描述】:
我是 Ruby 的新手。运行命令 bundle update 时出现错误。这就是我的 Gemfile 的样子:
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "jekyll", "~> 3.8"
gem "github-pages", group: :jekyll_plugins
plugins:
- jekyll-sitemap
- jekyll-paginate
- jekyll-redirect-from
- github-pages
这是我在运行bundle update 时遇到的错误:
[!] There was an error parsing `Gemfile`: syntax error, unexpected ':', expecting end-of-input - plugins:
^
. Bundler cannot continue.
# from /home/<user>/Documents/projects/<user>.github.io/Gemfile:10
# -------------------------------------------
#
> plugins:
# - jekyll-sitemap
期待有关如何解决此问题的任何指示。谢谢!
【问题讨论】: