1

我是 SASS 和 CodeKit 的新手,正在尝试编译 SASS 文件。该项目是 Drupal Omega 4 子主题。我正在运行安装了所有 Ruby Gems 的 Mac OSX 10.10,我试图找出没有让 CodeKit 编译文件的挂断在哪里。任何想法将不胜感激这是我得到的错误:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb 行 ["55"] 上的 ArgumentError:找不到 HOME 环境 --扩展 `~' 运行 --trace 以查看完整的回溯

这是 config.rb 文件

require 'compass/import-once/activate'
# Require any additional compass plugins here.
require '~/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/'
# require '~/Library/Ruby/Gems/2.0.0/gems/'

# Set this to the root of your project when deployed:
http_path = ""
css_dir = "css"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "js"
fonts_dir = "fonts"

output_style = :nested

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false
color_output = false

这是我要编译的 SCSS 文件

// Import external libraries.
@import "compass";
@import "breakpoint";
@import "singularitygs";
@import "toolkit";

// Import variables, abstractions, base styles and components using globbing.
//
// Globbing will always import files alphabetically. Optimally, all your
// components should be self-contained and explicit enough to not have any
// contained styles leak into unrelated components: The import order should not
// affect the result.
//
// If there are variables, functions or mixins that depend on each other and
// therefore need to be imported in a specific order you can import them
// directly. Variables-, function- or mixin providing partials should never
// output any styles themselves: Importing them multiple times to resolve
// dependencies shouldn't be a problem.
@import "variables/**/*";
@import "abstractions/**/*";
@import "base/**/*";
@import "components/**/*";
4

1 回答 1

1

尝试在文件中设置HOME环境变量。config.rb

ENV['HOME'] = "/Users/YOUR_OS_USER_NAME"
于 2014-11-06T11:01:56.723 回答