运行“jekyll serve”命令时出错

Error while running " jekyll serve " command

我按照下面的link安装了jekyll

https://davidburela.wordpress.com/2015/11/28/easily-install-jekyll-on-windows-with-3-command-prompt-entries-and-chocolatey/

然而,当我 运行 “jekyll serve” 时,出现以下错误

jekyll 3.2.0 | Error: different prefix: "/" and "C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1"

我正在使用 os windows 10.pls 帮助。

更新 1:

我安装了 3.1.6,但出现以下错误

c:\myblog>jekyll build C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:95:in block in materialize': Could not find j ekyll-3.2.0 in any of the sources (Bundler::GemNotFound) from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:inmap!' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in materialize' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler/definition.rb:140:inspecs' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler/definition.rb:185:in specs_for' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler/definition.rb:174:inrequested_specs' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler/environment.rb:19:in requested_specs' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:14:insetup' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.12.5/lib/bundler.rb:95:in setup' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-3.1.6/lib/jekyll/plugin_manager.rb:33:inrequire_from_bundler' from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/jekyll-3.1.6/bin/jekyll:9:in <top (required)>' from C:/Ruby200-x64/bin/jekyll:23:inload' from C:/Ruby200-x64/bin/jekyll:23:in `

更新2:

已更新到 jekyll 3.2.1,现在可以使用了。谢谢大家

这里有相同的问题。

3.2.0 版本目前已损坏 Windows。异常在此处 https://github.com/jekyll/jekyll/issues/5146 登录项目,应在未来版本中修复。

继续尝试解决方法。 (回滚 Jekyll 版本...?)

我暂时回滚了:

gem uninstall jekyll -v 3.2.0
gem install jekyll -v 3.1.6

我发现 jekyll 3.2.1 适用于 windows 7 的版本,但不适用于更高版本....

Jekyll 3.2.0 在 Windows 上被破坏了。 运行 gem update jekyll 升级到支持 Windows.

的 3.2.1