【问题标题】:Jekyll serve not working- Cannot find _fluidbox.scss?Jekyll 服务不工作 - 找不到 _fluidbox.scss?
【发布时间】:2016-12-18 02:29:56
【问题描述】:
Configuration file: C:/Users/Simon/Documents/other/Jekyll-project/_config.yml
Configuration file: C:/Users/Simon/Documents/other/Jekyll-project/_config.yml
            Source: C:/Users/Simon/Documents/other/Jekyll-project
       Destination: C:/Users/Simon/Documents/other/Jekyll-project/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
Error in _assets/stylesheets/light.scss:50 File to import not found or unreadab
e: ../bower/fluidbox/src/css/_fluidbox.scss.
Load paths:
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/css
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/stylesheets
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/images
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/img
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/fonts
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/javascripts
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/js
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/bower
  C:/Users/Simon/Documents/other/Jekyll-project/_vendor
  Liquid Exception: File to import not found or unreadable: ../bower/fluidbox/s
c/css/_fluidbox.scss. Load paths: C:/Users/Simon/Documents/other/Jekyll-project
_assets/css C:/Users/Simon/Documents/other/Jekyll-project/_assets/stylesheets C
/Users/Simon/Documents/other/Jekyll-project/_assets/images C:/Users/Simon/Docum
nts/other/Jekyll-project/_assets/img C:/Users/Simon/Documents/other/Jekyll-proj
ct/_assets/fonts C:/Users/Simon/Documents/other/Jekyll-project/_assets/javascri
ts C:/Users/Simon/Documents/other/Jekyll-project/_assets/js C:/Users/Simon/Docu
ents/other/Jekyll-project/_assets/bower C:/Users/Simon/Documents/other/Jekyll-p
oject/_vendor in /_layouts/post.html
jekyll 3.3.1 | Error:  File to import not found or unreadable: ../bower/fluidbo
/src/css/_fluidbox.scss.
Load paths:
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/css
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/stylesheets
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/images
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/img
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/fonts
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/javascripts
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/js
  C:/Users/Simon/Documents/other/Jekyll-project/_assets/bower
  C:/Users/Simon/Documents/other/Jekyll-project/_vendor

我不知道这意味着什么。我所做的只是在这里下载一个 jekyll 主题:http://chalk.nielsenramon.com

更改 _config.yml 中的一些内容(仅 twitter/github 和个人资料用户名)并在我的 cmd 中运行 jekyll serve 命令。这是显示的错误消息。我很久没做jekyll了,所以我很抱歉

【问题讨论】:

  • 您的错误表明您正在尝试访问位于 _assets/stylesheets/light.scss:50 的 css 文件,名为 ../bower/fluidbox/sc/css/_fluidbox.scss,但未找到。你能分享一下你正在使用的主题吗?我认为您跳过了任何主题配置步骤。

标签: ruby-on-rails ruby ruby-on-rails-4 jekyll bower


【解决方案1】:

From chalk documentation,你必须在bundle exec jekyll serve之前运行bin/setup

【讨论】:

    【解决方案2】:

    我遇到了上述相同的问题。我意识到你不能将它附加到现有的 Jekyll 构建中,而是需要从头开始一个新的 Jekyll 项目。这是由于 bin/setup 对环境所做的更改。如果你开始一个新项目,你应该没有问题。

    【讨论】:

      猜你喜欢
      • 2016-08-31
      • 2013-12-08
      • 1970-01-01
      • 1970-01-01
      • 2013-05-06
      • 1970-01-01
      • 1970-01-01
      • 2018-04-13
      • 1970-01-01
      相关资源
      最近更新 更多