bundle exec jekyll serve 运行报错Dependency Error Yikes\! It looks like you don't have kramdown-math-katex

Winter

2019-11-08


安装完jekyll后,运行指令bundle exec jekyll serve后报了如下错误:


Dependency Error: Yikes! It looks like you don't have kramdown-math-katex or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the kramdown-math-katex gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- kramdown-math-katex' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
 Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2019-08-06-this-is-yld.md':
                   kramdown-math-katex
            ERROR: YOUR SITE COULD NOT BE BUILT:
                   ------------------------------------
                   kramdown-math-katex
                   ------------------------------------------------
     Jekyll 4.0.0   Please append `--trace` to the `serve` command
                    for any additional information or backtrace.
                   ------------------------------------------------


 


 

image widget

第126篇《bundle exec jekyll serve 运行报错Dependency Error Yikes\! It looks like you don't have kramdown-math-katex》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点

1个回答
Winter 2019.11.08

首先在你的项目中找到Gemfile文件,然后在代码中添加

gem "kramdown-math-katex"

问题类别

JavaScript Ckeditor Python Webpack TypeScript Vue.js React.js ExpressJS KoaJS CSS Node.js HTML Django 单元测试 PHP Asp.net jQuery Bootstrap IOS Android