gpt4 book ai didi

ruby - 没有 bundle exec,jekyll 服务无法工作

转载 作者:太空宇宙 更新时间:2023-11-03 17:46:09 25 4
gpt4 key购买 nike

我有这个 jekyll 项目 https://github.com/mmistakes/minimal-mistakes

如果我运行 jekyll serve 会显示此错误。

WARN: Unresolved specs during Gem::Specification.reset: listen (< 3.1, ~> 3.0) 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

我已经安装了 jekyll paginate。我使用 gem list 检查过。但是,如果我运行 bundle exec jekyll serve 然后服务器完美启动。

Configuration file: /home/kenden/Desktop/minimal-mistakes-master/_config.yml Source: /home/kenden/Desktop/minimal-mistakes-master Destination: /home/kenden/Desktop/minimal-mistakes-master/_site Incremental build: disabled. Enable with --incremental Generating... done in 0.104 seconds. Auto-regeneration: enabled for '/home/kenden/Desktop/minimal-mistakes-master' Configuration file: /home/kenden/Desktop/minimal-mistakes-master/_config.yml Server address: http://127.0.0.1:4000 Server running... press ctrl-c to stop.

为什么 jekyll serve 不工作,jekyll servebundle exec jekyll serve 有什么区别?

最佳答案

Rationale and Purpose of Bundler可能会阐明差异。很可能您的系统 Ruby 上有多个版本的 gem,并且可能不确定要使用哪个版本。

如果您不想总是输入 bundle exec,请阅读 article from the Thoughtbot blog

关于ruby - 没有 bundle exec,jekyll 服务无法工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37056305/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com