0

我的指南针版本是 1.0.1(北极星)我的 sass 版本是 3.4.5

当我做一个正常的compass watch它工作得很好。我喜欢使用 codekit,我希望它编译我的 scss 文件,但它不是,它让我发疯。

如果任何机构对如何解决此问题有任何想法,请告诉我。提前致谢。

这是我尝试编译时的错误: Compass 无法编译项目中的一个或多个文件:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in fu_mkdir mkdir': Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14 (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in' 来自 /System/Library/Frameworks/Ruby.framework/Versions/2.0/ usr/lib/ruby/2.0.0/fileutils.rb:219:in block (2 levels) in mkdir_p' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:inreverse_each' 来自 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217 :in block in mkdir_p' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:ineach' 来自 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:203:in mkdir_p' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:210:inwrite_gem_make_out' 来自 /Library/Ruby/Site/2.0.0 /rubygems/ext/builder.rb:132:in build_error' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:171:inrescue in build_extension' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:156:in build_extension' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:198:inblock in build_extensions' from /Library/Ruby/Site /2.0.0/rubygems/ext/builder.rb:195:ineach' from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:inbuild_extensions'来自 /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1436:in block in build_extensions' from /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb:45:inuse_ui' 来自 /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1434:in build_extensions' from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:60:inbuild_extensions'来自 / Library/Ruby/Site/2.0.0/rubygems/basic_specification.rb:56:in contains_requirable_file?' from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:925:inblock in find_inactive_by_path' from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in each' from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:infind' from /Library/ Ruby/Site/2.0.0/rubygems/specification.rb:924:in find_inactive_by_path' from /Library/Ruby/Site/2.0.0/rubygems.rb:185:intry_activate' 来自 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:132:in rescue in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:inrequire' 来自 /Library/Ruby/ Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:2:in <top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' 来自 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require .rb:55:inrequire' from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_extensions/sprites/engines.rb:25:in'来自 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求'来自 /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/ sass_extensions/sprites.rb:20:in<top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in来自 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass/sass_extensions.rb:9:in'来自 /Library/Ruby/Site/2.0.0/rubygems/core_ext /kernel_require.rb:55:in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' 来自 /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass.rb:14:in block in <top (required)>' from /Library/Ruby/Gems/2.0.0/gems/compass-1.0.1/lib/compass.rb:13:ineach' 来自 /Library/Ruby/Gems/2.0 .0/gems/compass-1.0.1/lib/compass.rb:13:in <top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:135:inrequire' 来自 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:135:in rescue in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:inrequire' 来自 /Applications /CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:41:inblock in <main>' from /Applications/CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:29:infallback_load_path' 来自 /Applications/CodeKit.app/Contents/Resources/engines/compass/compass/bin/compass:40:in `'

4

1 回答 1

2

就在我升级到优胜美地之后,我跑了之后,指南针开始出现故障

> sudo gem update

有效。指南针是它更新的软件包之一。

我认为 Codekit 允许您选择要使用的编译器,内部 Codekit 或系统编译器。我的同事将 Codekit 与 Codekits 内部 Compass 编译器一起使用,没有问题,但我使用了系统 compass 编译器,但它失败了。

我不确定在包或权限或系统设置中发生了什么变化

于 2014-10-30T17:15:10.623 回答