1

我遵循了这个快速演练指南:http: //vimeo.com/63509346 并运行了以下命令:

  1. gem install compass
  2. gem install singularitygs

一切顺利,安装部分没有错误。

不幸的是,在运行此命令时:

compass create foobar -r singularitygs --using singularitygs

我收到此错误:

Gem::LoadError on line ["2007"] of C: Unable to activate singularitygs-1.2.3, because sass-3.2.19 conflicts with sass (~
> 3.3.0)
Run with --trace to see the full backtrace

现在,事实上,我确实已经sass-3.3.10安装了,但是在收到此错误并阅读此处的安装指南后:https ://github.com/Team-Sass/Singularity/wiki/Installation我已经sass完全卸载并重新运行该命令gem install compass,因此它将sass-2.x.x根据需要安装。但由于某种原因,我仍然无法运行compass create...- 我得到了同样的错误。

这些是我电脑上安装的所有 gem:

*** LOCAL GEMS ***

bigdecimal (1.2.0)
breakpoint (2.4.6)
chunky_png (1.3.1)
compass (0.12.7)
fssm (0.2.10)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
sass (3.2.19)
sassy-maps (0.4.0)
singularitygs (1.2.3)
test-unit (2.0.0.0)

任何帮助表示赞赏,如果需要任何进一步的数据,请告诉我。

干杯,

4

1 回答 1

1

使用 bundler 创建你的 foobar 项目。

首先安装捆绑器:

    gem install bundler

在您的文件夹中创建一个“GemFile”并将其放入:

    gem "sass", "~>3.2.0"
    gem "compass", "~>0.12.0"
    gem "singularitygs", "~>1.1.2"

之后运行:

    bundle install
    bundle exec compass create {project name} -r singularitygs --using singularitygs

如https://github.com/Team-Sass/Singularity/wiki/Installation中所建议

于 2014-07-30T13:10:45.403 回答