jekyll 运行时 需要 sass 模块问题

发布于 2021-11-17 07:42:29 字数 2762 浏览 868 评论 4

看中一个横板

http://github.com/jberkel/zegoggl.es

WIN下的rubyinstaller装的

jekyll 运行的时候,提示

Configuration from ./_config.yml
Sass is in the process of being separated from Haml,
and will no longer be bundled at all in Haml 3.2.0.
Please install the 'sass' gem if you want to use Sass.

Using Sass for CSS generation
Enabled Haml
Building site: . -> ./_site
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.101/lib/sass/engine.rb:179:in `+': can't convert Array into String (TypeError)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.101/lib/sass/engine.rb:179:in `normalize_options'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.101/lib/sass/engine.rb:243:in `initialize'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:256:in `new'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:256:in `block in transform_sass'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:254:in `each'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:254:in `transform_sass'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `block in transform_sass'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `each'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `transform_sass'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:128:in `process'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/bin/jekyll:147:in `<top (required)>'
        from C:/RailsInstaller/Ruby1.9.3/bin/jekyll:19:in `load'
        from C:/RailsInstaller/Ruby1.9.3/bin/jekyll:19:in `<main>'
看见了_config.yml 中

sass: true

我先把它去掉,然后 jekyll运行没问题了

发现 css目录中 需要转换的 xx.sass 没有转成CSS

不知怎么弄呢


如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

鹤舞 2021-11-18 03:17:25

弄到了3.1.15

我把CSS目录删了,可以运行了

然后再放进去一个,里面内容就是

a
 

也报错

[2012-04-01 13:25:44] INFO  WEBrick::HTTPServer#start: pid=4440 port=4000
undefined method `map' for "Z:/zegoggl.es/css":String
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/engine.rb:170:in `normalize_options'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/engine.rb:234:in `initialize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:256:in `new'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:256:in `block in transform_sass'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:254:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:254:in `transform_sass'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `block in transform_sass'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:251:in `transform_sass'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/lib/jekyll/site.rb:128:in `process'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/jberkel-jekyll-0.5.7/bin/jekyll:132:in `block in <top (required)>'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:580:in `call'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:580:in `block in notify_observer
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:579:in `each'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:579:in `notify_observers'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher.rb:334:in `block in initialize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:224:in `call'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:224:in `notify'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:102:in `run_once'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:150:in `run_loop'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/directory_watcher-1.4.1/lib/directory_watcher/scanner.rb:45:in `block in start'

 

一人独醉 2021-11-18 03:16:39

这个已经装了

瑾夏年华 2021-11-18 03:00:38

那试试sass版本降到3.1.15,我这里测试可以的

夜血缘 2021-11-17 23:42:49

提示haml3.2不再包含sass,让你手动Gem install sass...

装上再试试..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文