杰基尔服务显示依赖错误

杰基尔服务显示依赖错误

本文介绍了杰基尔服务显示依赖错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在我的网站文件夹之一上运行Jekyll服务时,出现以下错误

While trying to run Jekyll serve on one of my website folders, I get the following error

 Dependency Error: Yikes! It looks like you don't have jekyll-sitemap
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 -- jekyll-sitemap' If you
run into trouble, you can find helpful resources at
http://jekyllrb.com/help/!

如何安装je​​kyll-sitemap?

How do I install jekyll-sitemap?

推荐答案

要安装缺少的依赖项,请执行以下操作:运行gem install jekyll-sitemap,然后尝试再次运行Jekyll服务器.

To install the missing dependency:Run gem install jekyll-sitemap and then try to run the Jekyll server again.

另一个选项如果您有一个名为Gemfile的文件,请确保该文件在基本文件夹中运行bundle install并包含一个宝石jekyll-sitemap,然后将exec jekyll服务捆绑在一起.

Another option If you have a file named Gemfile, make sure it has a gem jekyll-sitemap at the base folder run bundle install and then bundle exec jekyll serve.

还要检查相关的问题.

这篇关于杰基尔服务显示依赖错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 00:34