杰基尔服务不工作

Jekyll Serve not working

我已经下载了这个 github 存储库的 zip - https://github.com/mmistakes/minimal-mistakes

我已经安装了 bundler 并且安装了 bundle install ,它运行良好。

现在当我尝试 运行 jekyll serve -w,

WARN: Unresolved specs during Gem::Specification.reset: jekyll-watch (~> 1.1) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. Configuration file: /home/kenden/Desktop/minimal-mistakes-master/_config.yml

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

jekyll 3.1.3 | Error: jekyll-paginate

然而,当我这样做时,gem list,它会显示 jekyll-paginate (1.1.0) 以及安装的所有其他 gem。

如何解决这个问题?

我能够使用 gem cleanup 然后 bundle exec jekyll serve 解决它。

如果 gem cleanupbundle exec jekyll serve 不起作用。 然后尝试 bundle add webrick。之后你可以试试bundle exec jekyll serve。 它应该可以工作。