尝试在我的网站文件夹之一上运行 Jekyll 服务时,出现以下错误
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/!
如何安装 jekyll-sitemap?
最佳答案
要安装缺少的依赖项:
运行gem install jekyll-sitemap
,然后尝试再次运行 Jekyll 服务器。
另一个选项如果您有一个名为 Gemfile
的文件,请确保它在运行 bundle install
的基本文件夹中有一个 gem jekyll-sitemap
然后捆绑执行jekyll服务。
另请检查此相关 question .
关于web - jekyll 服务显示依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41872341/