运行时出现错误“杰基尔服务命令 [英] Error while running " jekyll serve " command

查看:43
本文介绍了运行时出现错误“杰基尔服务命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我点击了以下链接以安装jekyll

I followed the following link to install jekyll

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

但是,当我运行"jekyll serve"时,出现以下错误

However when I run " jekyll serve" , I get the following error

jekyll 3.2.0 |错误:前缀不同:"/"和 "C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/minima-1.0.1"

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帮助.

I am using os windows 10.pls help.

更新1 :

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

I installed 3.1.6, but I am getting the follwoing error

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 `

Update2:

已更新为jekyll 3.2.1,现在可以使用.谢谢大家.

Updated to jekyll 3.2.1, working now. Thanks everybody.

推荐答案

Jekyll 3.2.0在Windows上已损坏.运行gem update jekyll升级到支持Windows的3.2.1.

Jekyll 3.2.0 was broken on Windows. Run gem update jekyll to upgrade to 3.2.1 which supports Windows.

这篇关于运行时出现错误“杰基尔服务命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆