jekyll serve error


运行 jekyll serve 时出现如下错误,求解。

D:\GitHub\kanlei.github.com>jekyll serve
Configuration file: D:/GitHub/kanlei.github.com/_config.yml
Source: D:/GitHub/kanlei.github.com
Destination: D:/GitHub/kanlei.github.com/_site
Generating...
Error reading file D:/GitHub/kanlei.github.com/_layouts/default.html: No such fi
le or directory @ rb_sysopen - D:/GitHub/kanlei.github.com/GitHub/kanlei.github.
com/_layouts/default.html
Error reading file D:/GitHub/kanlei.github.com/_layouts/page.html: No such file
or directory @ rb_sysopen - D:/GitHub/kanlei.github.com/GitHub/ka...
/_layouts/page.html
Error reading file D:/GitHub/kanlei.github.com/_layouts/post.html: No such file
or directory @ rb_sysopen - D:/GitHub/kanlei.github.com/GitHub/ka...
/_layouts/post.html
Error reading file D:/GitHub/kanlei.github.com/_posts/core-samples/2011-12-29-je
kyll-introduction.md: No such file or directory @ rb_sysopen - D:/GitHub/kanlei.
github.com/GitHub/kanlei.github.com/_posts/core-samples/2011-12-29-jekyll-introd
uction.md

操作系统:windows 8.1
Jekyll version: jekyll 2.5.0
gem -v: 2.2.2

github jekyll

DOTA1 9 years, 8 months ago

更好的解决办法是 不要在windows上用jekyll。

曾经在windows为了跑起jekyll,在各处翻查资料,大概搞定都花了2个小时。换了台笔记本根本不想搞第二遍,再后来换了台mac以后,组建jekyll的运行环境只花了2分钟。不得不说,开发除了windows系的东西,真心Linux/OS X会好用很多。

安式回转跑 answered 9 years, 8 months ago

已找到解决方法:


 gem uninstall jekyll
gem install jekyll -v 2.4.0

最新的 Jekyll 版本兼容问题。

我系绿坝娘 answered 9 years, 8 months ago

Your Answer