捆绑安装后 Jekyll 找不到 gem

标签 jekyll

➜  site bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...
Using colorator 1.1.0
Using ffi 1.9.14
Using forwardable-extended 2.6.0
Using sass 3.4.22
Using rb-fsevent 0.9.7
Using kramdown 1.12.0
Using liquid 3.0.6
Using mercenary 0.3.6
Using rouge 1.11.1
Using safe_yaml 1.0.4
Using minima 1.1.0
Using bundler 1.12.5
Using rb-inotify 0.9.7
Using pathutil 0.14.0
Using jekyll-sass-converter 1.4.0
Using listen 3.0.8
Using jekyll-watch 1.5.0
Using jekyll 3.2.1
Bundle complete! 2 Gemfile dependencies, 18 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
➜  site bundle exec jekyll serve
Could not find minima-1.1.0 in any of the sources
Run `bundle install` to install missing gems.

捆绑安装 Jekyll 后仍然提示缺少 minima-1.1.0 gem

最佳答案

正如在 Jekyll's home page 上看到的那样,您必须从站点根目录中进行另一个捆绑安装。

gem install jekyll bundler 
jekyll new my-awesome-site 
cd my-awesome-site 
bundle install 
bundle exec jekyll serve
# => Now browse to http://localhost:4000

关于捆绑安装后 Jekyll 找不到 gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39384024/

相关文章:

markdown - Jekyll 代码用 markdown 高亮显示

css - 按钮在 Bootstrap 主题中保持为 'pressed down'

ruby - Jekyll 在构建时输出 Gemfile、Gemfile.lock。我该如何/应该如何防止这种情况?

jekyll - "jekyll build --lsi"使博客非常非常慢

jekyll - 为什么 github 页面无法正确呈现我的代码块?

Jekyll 按类别显示帖子

html - 当我运行服务器时,我对网站文件夹中的文件所做的更改会自动恢复

ruby - Jekyll 与 .erb 的兼容性

redirect - Jekyll 重定向整个目录

ruby - 从 Jekyll 插件运行 Liquid 过滤器