responsive-design – 捆绑的So-Simple Jekyll主题没有在localhost中运行jekyll服务?

我正在为她的女朋友在她生日那天制作一个网站,因为那天我不能和她在一起.

我正在为网站使用So-Simple Jekyll主题,但它不能以某种方式工作而不能在本地主机上打开.它抛出以下错误.

$jekyll serve --watch
WARN: Unresolved specs during Gem::Specification.reset:
  listen (~> 2.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-2.5.1/bin/jekyll:21:in `block in <top (required)>': cannot load such file -- jekyll/version (LoadError)
    from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary.rb:18:in `program'
    from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-2.5.1/bin/jekyll:20:in `<top (required)>'
    from c:/Ruby200-x64/bin/jekyll:23:in `load'
    from c:/Ruby200-x64/bin/jekyll:23:in `<main>'

如果你可以帮助我,请为我的生日留下几天.此外,欢迎任何更多的生日礼物建议.感谢致敬!

最佳答案 我遇到了同样的错误,你可以用捆绑的exec来运行Jekyll.

bundle exec jekyll build

bundle exec jekyll serve

bundle exec:在bundle的上下文中运行命令.

In some cases, running executables without bundle exec may work, if
the executable happens to be installed in your system and does not
pull in any gems that conflict with your bundle.

However, this is unreliable and is the source of considerable pain.
Even if it looks like it works, it may not work in the future or on
another machine.

它适用于我,如果您仍然遇到错误,请提供更多详细信息.

点赞