【问题标题】:Cannot compile sass: error "cannot load such file -- bootstrap-sass"无法编译 sass:错误“无法加载此类文件 -- bootstrap-sass”
【发布时间】:2016-08-25 23:02:33
【问题描述】:

第一次使用sass。我只需要使用django-pipeline 编译 sass,但我不能这样做会导致此错误。知道为什么吗?

我安装了请求的 gem。

$ gem install bootstrap-sass
Successfully installed bootstrap-sass-3.3.7
Parsing documentation for bootstrap-sass-3.3.7
Done installing documentation for bootstrap-sass after 0 seconds
1 gem installed

然后我运行编译。

$ compass compile sass/
DEPRECATION WARNING:
Sass 3.5 will no longer support Ruby 1.9.3.
Please upgrade to Ruby 2.0.0 or greater as soon as possible.

LoadError on line ["55"] of      /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:   cannot load such file -- bootstrap-sass
Run with --trace to see the full backtrace

【问题讨论】:

    标签: sass rubygems compass-sass django-pipeline


    【解决方案1】:

    问题是 ubuntu 14.04 LTS 中的 gem 版本我解决了从 ppa 安装最新版本 ruby​​ 的问题:https://www.brightbox.com/docs/ruby/ubuntu/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-24
      相关资源
      最近更新 更多