jekyll serve shows a dependency erroe

旧巷老猫 提交于 2019-12-11 05:52:33

问题


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/! 

How do I install jekyll-sitemap?


回答1:


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

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.

Also check this related question.



来源:https://stackoverflow.com/questions/41872341/jekyll-serve-shows-a-dependency-erroe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!