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
时,这些是消息。
答案 0 :(得分:72)
我遇到了同样的问题但修好了安装pygments gem。
gem install pygments.rb
并将其添加到我的Gemfile中。
gem 'pygments.rb'
答案 1 :(得分:-1)
如果您是Windows用户,则可以以管理员身份运行CLI。这会有所帮助。
答案 2 :(得分:-2)
如果您使用命令sudo gem install pygments.rb
或gem install pygments.rb
,则可能无效
所以你可以试试root:
su root
gem install pygments.rb
这解决了我的问题。