I am having problems running compass commands (since today). It was working perfectly just a few hours ago
OS: 10.9.1 (Mavericks)
Ruby: ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
I installed scss-lint today
sudo gem install scss-lint
which returned
Fetching: colorize-0.5.8.gem (100%)
Successfully installed colorize-0.5.8
Fetching: sass-3.3.0.rc.1.gem (100%)
Successfully installed sass-3.3.0.rc.1
Fetching: scss-lint-0.17.1.gem (100%)
Successfully installed scss-lint-0.17.1
Parsing documentation for colorize-0.5.8
Installing ri documentation for colorize-0.5.8
Parsing documentation for sass-3.3.0.rc.1
Installing ri documentation for sass-3.3.0.rc.1
Parsing documentation for scss-lint-0.17.1
Installing ri documentation for scss-lint-0.17.1
now I get (when I try to run a compass command; compass create; compass watch .. etc)
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- sass/script/node (LoadError)
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
from /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:in `require'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>'
from /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:in `require'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>'
from /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:in `require'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in `each'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>'
from /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:in `require'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
from /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/bin/compass:19:in `<top (required)>'
from /usr/bin/compass:23:in `load'
from /usr/bin/compass:23:in `<main>'
I removed scss-lint sudo gem uninstall scss-lint
but nothing changed
Can anybody help me?
I found a few similar questions but most of them were related to rvm (which I do not have installed)
my gems are:
$ gem list
*** LOCAL GEMS ***
actionmailer (4.0.2)
actionpack (4.0.2)
activemodel (4.0.2)
activerecord (4.0.2)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.2)
arel (4.0.1)
atomic (1.1.14)
builder (3.1.4)
bundler (1.3.5)
CFPropertyList (2.2.0)
chunky_png (1.2.9)
colorize (0.5.8)
compass (0.12.2)
diff-lcs (1.2.5)
erubis (2.7.0)
ffi (1.9.3)
fssm (0.2.10)
haml (4.0.4)
hike (1.2.3)
i18n (0.6.9)
libxml-ruby (2.6.0)
listen (1.1.6)
mail (2.5.4)
mime-types (1.25.1)
minitest (4.7.5)
modular-scale (1.0.6)
multi_json (1.8.2)
nokogiri (1.5.6)
observr (1.0.5)
polyglot (0.3.3)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.2)
railties (4.0.2)
rake (10.1.1)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
rb-kqueue (0.2.0)
rspec (2.14.1)
rspec-core (2.14.7)
rspec-expectations (2.14.4)
rspec-mocks (2.14.4)
rspec-rails (2.14.0)
rubygems-update (2.2.1)
sass (3.3.0.rc.2, 3.3.0.rc.1)
sassy-math (1.5)
scss-lint (0.17.1)
sprockets (2.10.1)
sprockets-rails (2.0.1)
sqlite3 (1.3.7)
styleguide (0.1.0)
terminal-notifier (1.5.1)
thor (0.18.1)
thread_safe (0.1.3)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (0.3.38)
watchr (0.7)
Looks like you need to specify an earlier version of the sass
gem to get it working again:
Assuming you installed
scss-lint
viagem install scss-lint
and don't have it in yourGemfile
, you should be able to solve the problem by pinning thesass
version in yourGemfile
to3.2.12
so that bundler doesn't automatically try to load the latest available version.
Answer taken from the scss-lint
issues list: https://github.com/brigade/scss-lint/issues/54
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.