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

Ian Rushton
Ian Rushton
15,789 Points

Help installing Sass on my Mac

Upon trying to install Sass on my Mac I get this error...

Ians-MBP:~ Ian$ gem install sass
Fetching: sass-3.4.22.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Ians-MBP:~ Ian$ 

Does anyone have any ideas as to why?

An help would be greatly appreciated.

Viktor Yakov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Viktor Yakov
Front End Web Development Techdegree Graduate 15,770 Points

Hello Ian. If I'am right you're moste likely to have gem SASS (which is part of Ruby) on your Mac. Try not to install that gem. Just try to run sass with watch command : sass --watch scss:css e.t.c. Hope this helps ;) You can try sudo gem update --system.

1 Answer

Arielle Aurrichio
Arielle Aurrichio
48 Points

sudo gem install sass should work.

It'll ask for a password, which is the one you use to login to the machine.

Gregory Ledger
Gregory Ledger
6,116 Points

Same problem, but there is no password for my machine. Terminal won't take "enter" or nothing as a password.