Ruby 当我使用';杰基尔新公司<;someSite>;,它抱怨我在捆绑exec jekyll服务时丢失了文件夹`

Ruby 当我使用';杰基尔新公司<;someSite>;,它抱怨我在捆绑exec jekyll服务时丢失了文件夹`,ruby,jekyll,Ruby,Jekyll,我想用Jekyll从头开始创建一个网站。我使用这个命令:`jekyllnewmysite'。它吐出这样一句话: repo> jekyll new mysite Running bundle install in /Users/johntowery/repo/kbsite... Bundler: Fetching gem metadata from https://rubygems.org/........... Bundler: Fetching gem metadata fr

我想用Jekyll从头开始创建一个网站。我使用这个命令:`jekyllnewmysite'。它吐出这样一句话:

 repo> jekyll new mysite
Running bundle install in /Users/johntowery/repo/kbsite... 
  Bundler: Fetching gem metadata from https://rubygems.org/...........
  Bundler: Fetching gem metadata from https://rubygems.org/.
  Bundler: Resolving dependencies...
  Bundler: Using public_suffix 4.0.1
  Bundler: Using addressable 2.7.0
  Bundler: Using bundler 2.0.2
  Bundler: Using colorator 1.1.0
  Bundler: Using concurrent-ruby 1.1.5
  Bundler: Using eventmachine 1.2.7
  Bundler: Using http_parser.rb 0.6.0
  Bundler: Using em-websocket 0.5.1
  Bundler: Using ffi 1.11.1
  Bundler: Using forwardable-extended 2.6.0
  Bundler: Using i18n 1.6.0
  Bundler: Using sassc 2.2.0
  Bundler: Using jekyll-sass-converter 2.0.0
  Bundler: Using rb-fsevent 0.10.3
  Bundler: Using rb-inotify 0.10.0
  Bundler: Using ruby_dep 1.5.0
  Bundler: Using listen 3.1.5
  Bundler: Using jekyll-watch 2.2.1
  Bundler: Using kramdown 2.1.0
  Bundler: Using kramdown-parser-gfm 1.1.0
  Bundler: Using liquid 4.0.3
  Bundler: Using mercenary 0.3.6
  Bundler: Using pathutil 0.16.2
  Bundler: Using rouge 3.10.0
  Bundler: Using safe_yaml 1.0.5
  Bundler: Using unicode-display_width 1.6.0
  Bundler: Using terminal-table 1.8.0
  Bundler: Using jekyll 4.0.0
  Bundler: Using jekyll-feed 0.12.1
  Bundler: Using jekyll-seo-tag 2.6.1
  Bundler: Using minima 2.5.1
  Bundler: Bundle complete! 6 Gemfile dependencies, 31 gems now installed.
  Bundler: Use `bundle info [gemname]` to see where a bundled gem is installed.
New jekyll site installed in /Users/johntowery/repo/mysite. 
它创建了一些文件和目录。我知道这个新网站使用基于宝石的主题“极小值”

到目前为止还不错。我知道_布局_包含等已经在Minima主题中,所以这是意料之中的。在这一点上,我没有添加或更改任何内容。现在,我使用以下命令运行它:
bundle execjekyll-serve

我明白了

mysite> bundle exec jekyll serve
Configuration file: /Users/johntowery/repo/kbsite/_config.yml
            Source: /Users/johntowery/repo/kbsite
       Destination: /Users/johntowery/repo/kbsite/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts
     Build Warning: Layout 'post' requested in _posts/2019-09-12-welcome-to-jekyll.markdown does not exist.
     Build Warning: Layout 'default' requested in 404.html does not exist.
     Build Warning: Layout 'page' requested in about.markdown does not exist.
     Build Warning: Layout 'home' requested in index.markdown does not exist.
                    done in 0.402 seconds.
 Auto-regeneration: enabled for '/Users/johntowery/repo/kbsite'
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
为什么它不承认那些“缺失”的布局是在最小的宝石

\u config.yml
文件夹:(它是由
jekyll new
自动生成的,我没有修改它。)

我知道,当使用jekyllnew创建新站点时,它将创建所有基本文件(scaffolding)。我知道有些文件夹没有创建,因为它已经在主题gem中(最小值)。我知道如果你想覆盖默认设置,你只需要创建文件夹(_layouts,_include,或_sass,等等)。我知道。但是我希望
jekyll new
能够创建必要的,并且能够
bundle exec jekyll service
成功。但事实并非如此。它没有意识到那些“丢失”的文件夹是最小的宝石。为什么它不认识它?如果Jekyll不认识gem中的文件夹,那么主题gems有什么意义

有什么东西不见了吗

即时通讯使用:

  • 马科斯·莫哈韦(10.14.6(18G95))
  • ruby 2.6.4p104
  • 捆绑程序版本2.0.2
  • 杰基尔4.0.0

谢谢

好的,我知道了

问题是安装的minima gem是空白的

我通过做
cd$(bundle show minima)
来查看minima gem的内容。并看到里面的宝石是空白的,没有文件夹或任何文件

所以我卸载gem,然后重新安装它。在那之后,它现在开始工作了

我不知道为什么安装的minima(2.5.1)是空白的gem,可能只是一个侥幸,或者最初安装gem时发生了错误

mysite> bundle exec jekyll serve
Configuration file: /Users/johntowery/repo/kbsite/_config.yml
            Source: /Users/johntowery/repo/kbsite
       Destination: /Users/johntowery/repo/kbsite/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts
     Build Warning: Layout 'post' requested in _posts/2019-09-12-welcome-to-jekyll.markdown does not exist.
     Build Warning: Layout 'default' requested in 404.html does not exist.
     Build Warning: Layout 'page' requested in about.markdown does not exist.
     Build Warning: Layout 'home' requested in index.markdown does not exist.
                    done in 0.402 seconds.
 Auto-regeneration: enabled for '/Users/johntowery/repo/kbsite'
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
#
# If you need help with YAML syntax, here are some quick references for you: 
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
# https://learnxinyminutes.com/docs/yaml/
#
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

title: Your awesome title
email: your-email@example.com
description: >- # this means to ignore newlines until "baseurl:"
  Write an awesome description for your new site here. You can edit this
  line in _config.yml. It will appear in your document head meta (for
  Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username:  jekyll

# Build settings
theme: minima
plugins:
  - jekyll-feed

# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
# the internal "default list".
#
# Excluded items can be processed by explicitly listing the directories or
# their entries' file path in the `include:` list.
#
# exclude:
#   - .sass-cache/
#   - .jekyll-cache/
#   - gemfiles/
#   - Gemfile
#   - Gemfile.lock
#   - node_modules/
#   - vendor/bundle/
#   - vendor/cache/
#   - vendor/gems/
#   - vendor/ruby/