我正在努力建立我的第一个jekyll博客。我正在尝试运行jekyll服务器,但在终端中键入它时,我得到了错误消息:
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的新手,所以如果有任何帮助,我将非常感激!
发布于 2015-11-24 00:05:57
我在我的环境中解决了同样的问题:
$>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。
希望这能有所帮助。
https://stackoverflow.com/questions/31417469
复制相似问题