我一直没想到Dreamweaver和Koara用罗盘编译scss文件。
但是自从我将Mac更新为OS X 10.3(HighSierra)后,我收到了这些错误消息。
Users/MyAccount/Desktop/test/sass/mtnCommon.scss
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'compass' (>= 0) among 15 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/MyAccount/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0', execute `gem env` for more information
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from /Applications/Koala.app/Contents/Resources/app.nw/bin/compass:17:in `
'
请让我知道如何解决这个问题。
答案 0 :(得分:2)
解决此问题的步骤:
安装Homebrew:
ruby -e" $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
请勿关闭终端。打开Mac Appstore并检查更新,安装所有 XCode命令行工具更新
安装Ruby:
brew install rbenv ruby-build
安装SASS gem:
sudo gem install sass
答案 1 :(得分:0)
我已经询问了GitHub的指南针问题,我收到了一条回复说“从DW方面修复此问题。”。
所以我需要等到下一个DW出来。在那之前,我将手动编译。
如果你正在使用考拉,请询问开发者。
感谢您的帮助。