jekyll serve 显示依赖错误

jekyll serve shows a dependency erroe

在尝试 运行 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 然后bundle exec jekyll serve.

同时检查这个相关的