Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Sass Basics (retired) Getting Started with Sass Installing and Using Sass

Mark Lovett
Mark Lovett
15,853 Points

Sass Mac Installation issue - Ruby conflict?

Sass did not appear to be installed on my mac, so I ran sudo gem install sass, and sass --version returns Sass 3.3.10 (Maptastic Maple).

It seemed to install correctly. However, when I ran sass test.scss it returns the below.

I have no idea what I need to do to at this point. I believe I had installed Sass previously with codekit and using sublime2. Not sure if this has anything to do with it.

Help! ''' marks-mbp:~ marklovett$ sass test.scss /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:213: warning: Insecure world writable dir /Users/marklovett in PATH, mode 040777 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'sass' (>= 0) among 14 total gem(s) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:into_spec' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /usr/bin/sass:22:in<main>' '''

1 Answer

Benjamin Lim
Benjamin Lim
17,880 Points

Hi Mark,

Try create the test.scss file first and enter some CSS in there. Eg. body{background:green;} After doing so, when you run sass test.scss Sass should compile and generate the test.css first for you.

Hope this helps!