jekyll 2 升级 jekyll 3 Dependency Error
2016-02-06 10:04
295 查看
症状:
因为这篇文章GitHub Pages now faster and simpler with Jekyll 3.0,打算将jekyll 2升级到jekyll 3。
执行
Dependency Error: Yikes! It looks like you don’t have kramdown or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. The full error message from Ruby is: ‘cannot load such file – kramdown’ If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
当然了,错误显示的
问题的关键是不存在提示的 kramdown Dependency Error。GitHub端正常运行,GitHub blog可以照常访问,只是本地无法运行。
解决办法
本地启动时执行:
在之前的命令
参考:https://github.com/jekyll/jekyll/issues/3084
因为这篇文章GitHub Pages now faster and simpler with Jekyll 3.0,打算将jekyll 2升级到jekyll 3。
执行
gem update jekyll后,查看jekyll版本
jekyll --version确已升级至到时最新的3.1.1版本.但是在本地启动运行
jekyll serve --watch却发生以下错误:
Dependency Error: Yikes! It looks like you don’t have kramdown or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. The full error message from Ruby is: ‘cannot load such file – kramdown’ If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
当然了,错误显示的
kramdown我是确定已经安装了。如果不确定,您可以查看是否已安装:
gem list | grep kramdown. 如果您还没有请安装:
gem install kramdown。
问题的关键是不存在提示的 kramdown Dependency Error。GitHub端正常运行,GitHub blog可以照常访问,只是本地无法运行。
解决办法
本地启动时执行:
bundle execjekyll serve --watch
在之前的命令
jekyll serve --watch加上
bundle exec. 因为我使用了 bundler 管理了gems.
参考:https://github.com/jekyll/jekyll/issues/3084
相关文章推荐
- CFS中的虚拟运行时间
- 六款优秀的开源协作编辑工具
- 六款优秀的开源协作编辑工具
- PAT 1002
- .Net专版-memcached在windows下的下载与安装
- home-brew 不能sudo的解决
- Angularjs中如何使用filterFilter函数过滤
- ShapableLoadingView 酷炫到爆炸的进度条
- Linux下mysql备份 恢复
- 谍影重重三部曲
- 面试准备(三) Java 异常类层次结构
- 方法论:怎样练习一万小时
- 可扩展 Web 架构与分布式系统
- storyboard自定义非等高的Cell
- 一位软件工程师的6年总结(转)
- NoClassDefFoundError: org/slf4j/LoggerFactory和NoClassDefFoundError: org/apache/log4j/LogManager解决方法
- 用户界面框架jQuery EasyUI示例大全之DataGrid(2/4)
- static wechat red package tool
- Photoshop CS6 实例-用椭圆选框工具设计光盘封面
- 网络编程API-下 (I/O复用函数)