我想使用 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.rb
、gem cleanup redcarpet
和 gem 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/