Jekyll服务无效:您似乎没有pygments或未安装其中之一的依赖项 [英] Jekyll serve didn't work: It looks like you don't have pygments or one of its dependencies installed

查看:89
本文介绍了Jekyll服务无效:您似乎没有pygments或未安装其中之一的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Configuration file: /Users/andrechristoga/Documents/type-theme/_config.yml
       Deprecation: You appear to have pagination turned on, but you haven't included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file.
            Source: /Users/andrechristoga/Documents/type-theme
       Destination: /Users/andrechristoga/Documents/type-theme/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
  Dependency Error: Yikes! It looks like you don't have pygments 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 -- pygments' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! 
  Liquid Exception: pygments in /Users/andrechristoga/Documents/type-theme/_posts/2014-11-28-markdown-and-html.md
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    pygments

这些是我键入jekyll serve时出现的消息.

These are the message when I type jekyll serve.

推荐答案

我遇到了同样的问题,但是修复了安装pygments gem的问题.

I had the same issue but fixed it installing pygments gem.

gem install pygments.rb

并将其添加到我的Gemfile中.

And adding it to my Gemfile.

gem 'pygments.rb'

这篇关于Jekyll服务无效:您似乎没有pygments或未安装其中之一的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆