gpt4 book ai didi

ruby - Jekyll/Ruby Kramdown 缺少依赖

转载 作者:数据小太阳 更新时间:2023-10-29 06:35:58 28 4
gpt4 key购买 nike

我正在努力尝试建立我的第一个 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 的 super 新手,所以非常感谢任何帮助!

最佳答案

我觉得问题是

gem query | grep kramdown
kramdown (1.8.0, 1.5.0)

bundle show kramdown
/Library/Ruby/Gems/2.0.0/gems/kramdown-1.5.0

http://bundler.io/ 中的建议, 始终使用 bundle exec

bundle exec jekyll serve --watch 

In some cases, running executables without bundle exec may work, if the executable happens to be installed in your system and does not pull in any gems that conflict with your bundle. However, this is unreliable and is the source of considerable pain. Even if it looks like it works, it may not work in the future or on another machine.

关于ruby - Jekyll/Ruby Kramdown 缺少依赖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31417469/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com