ruby-on-rails - 带有 WARN 的 jekyll -v:Gem::Specification.reset 期间 Unresolved 规范:

标签 ruby-on-rails ruby jekyll

我想使用 HPSTR jekyll 主题,当我执行 jekyll serve 时,终端向我抛出错误:

/Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find coffee-script-source-1.9.1 in any of the sources (Bundler::GemNotFound)
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler/spec_set.rb:85:in `map!'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler/spec_set.rb:85:in `materialize'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler/definition.rb:139:in `specs'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler/definition.rb:184:in `specs_for'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler/definition.rb:173:in `requested_specs'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler/environment.rb:18:in `requested_specs'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler/runtime.rb:13:in `setup'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.10.3/lib/bundler.rb:127:in `setup'
    from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:37:in `require_from_bundler'
    from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/bin/jekyll:16:in `<top (required)>'
    from /usr/bin/jekyll:23:in `load'
    from /usr/bin/jekyll:23:in `<main>'

然后我尝试使用 bundle exec jekyll serve,有人告诉我: -bash:捆绑:找不到命令

因此我在控制台中输入了 bundle install,一切顺利,除了在 bundle installed jekyll -v 之后抛出了这样的东西:

WARN: Unresolved specs during Gem::Specification.reset:
      pygments.rb (~> 0.6.0)
      redcarpet (~> 3.1)
      listen (~> 2.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
jekyll 2.5.3

如何清除 Unresolved 规范?

我已经尝试过 gem cleanup pygments.rbgem cleanup redcarpetgem cleanup listen。这些命令运行良好,但 jekyll -v 的结果是一样的。

我什至尝试了 bundle clean --force,仍然收到相同的 WARN。

有人知道吗?非常感谢

最佳答案

这对我有用

git clone git@github.com:mmistakes/hpstr-jekyll-theme.git
cd hpstr-jekyll-theme/
rm Gemfile.lock
bundle install
bundle exec jekyll serve

关于ruby-on-rails - 带有 WARN 的 jekyll -v:Gem::Specification.reset 期间 Unresolved 规范:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30849050/

相关文章:

ruby-on-rails - 如何在 Rails 中构建投票/调查类型的应用程序

ruby-on-rails - Rails 4 + PostgreSQL 9.6 hstore,无法执行 “CREATE EXTENSION hstore”

ruby - 如何跟踪 Ruby 中的死锁

来自两个不同大小数组的 Ruby 数组?

docker - Jekyll 站点在 docker 容器内运行,但 localhost 为 :4000 is not working on host

php - 我可以在 Rails (PHP) 之外的框架上使用 Capybara 吗?

ruby-on-rails - gem install rails -v 4.1.0 卡在 ri-documentation

ruby - 如何覆盖 Jekyll 构建命令以仅在构建时设置一些配置选项?

github - 如何将 Octopress 博客部署到现有的 gh-pages 静态站点?

ruby-on-rails - rspec 国际化测试 View ?