jekyll -v with WARN:Gem :: Specification.reset期间未解析的规范:

时间:2015-06-15 15:27:27

标签: 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: command not found

因此我在控制台中键入bundle install,一切顺利,但是在安装了捆绑包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

如何清除未解决的规格?

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

我甚至试过bundle clean --force,仍然得到了相同的警告。

谁有任何想法?非常感谢

1 个答案:

答案 0 :(得分:4)

这对我有用

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