首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jekyll/Ruby Kramdown缺少依赖项

Jekyll/Ruby Kramdown缺少依赖项
EN

Stack Overflow用户
提问于 2015-07-15 05:11:15
回答 1查看 6.6K关注 0票数 17

我正在努力建立我的第一个jekyll博客。我正在尝试运行jekyll服务器,但在终端中键入它时,我得到了错误消息:

代码语言:javascript
复制
You are missing a library required for Markdown. Please run:
$ [sudo] gem install kramdown
Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2013-08-15-immunize-canada-app.md/#excerpt':
                Missing dependency: kramdown
         ERROR: YOUR SITE COULD NOT BE BUILT:
                ------------------------------------
                Missing dependency: kramdown

我已经按照它的要求安装了kramdown,但仍然收到这个错误。我在另一篇文章中发现将gem 'kramdown‘添加到Gemfile中,但仍然不起作用。我是Ruby/Jekyll的新手,所以如果有任何帮助,我将非常感激!

EN

回答 1

Stack Overflow用户

发布于 2015-11-24 00:05:57

我在我的环境中解决了同样的问题:

代码语言:javascript
复制
$>gem uninstall kramdown

Select gem to uninstall:
 1. kramdown-1.5.0
 2. kramdown-1.9.0
 3. All versions
> 3

You have requested to uninstall the gem:
        kramdown-1.5.0

github-pages-39 depends on kramdown (= 1.5.0)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]  y
Successfully uninstalled kramdown-1.5.0

You have requested to uninstall the gem:
        kramdown-1.9.0

jekyll-3.0.1 depends on kramdown (~> 1.3)
jekyll-2.4.0 depends on kramdown (~> 1.3)
markdown-1.2.0 depends on kramdown (>= 1.5.0)
test-unit-3.1.5 depends on kramdown (>= 0, development)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]  y
Remove executables:
        kramdown

in addition to the gem? [Yn]  y
Removing kramdown
Successfully uninstalled kramdown-1.9.0

$>gem install kramdown
Fetching: kramdown-1.9.0.gem (100%)
Successfully installed kramdown-1.9.0
Parsing documentation for kramdown-1.9.0
Installing ri documentation for kramdown-1.9.0
Done installing documentation for kramdown after 2 seconds
1 gem installed

问题是由两个版本的kramdown引起的。

因此,先对其进行uninstall,然后再对其进行install

希望这能有所帮助。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31417469

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档