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 trialJanire Santibáñez
6,736 PointsI cannot use Sass in my mac
Hi everyone!
I am having problems installing Sass in my mac, the fact is that I am following correctly the instructions provided by the teacher but It does not work for me :-(
When I add "gem install sass" on the command line, there is an error message which you can see below:
Last login: Mon Apr 14 20:44:53 on ttys000
JPs-MacBook-Pro:~ janire$ gem install sass
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
JPs-MacBook-Pro:~ janire$
Anyone know what is happening? I really appreciate your help.
Thanks in advance.
4 Answers
rayorke
27,709 PointsAbsolutely. It's a security device that OSX uses so that we don't accidentally install something that could damage our system. Thanks for explaining that Dave!
As he mentioned, the password should be your system password.
rayorke
27,709 PointsIt sounds like you don't have write permissions. Try invoking sudo with the following:
$ sudo gem install sass
I always check to make sure it installed by checking the version with:
$ sass -v
I hope that helps!
Janire Santibáñez
6,736 PointsHi Rhys!
Thank you very much for your quick response but I have tried it and It did not work...
If I add on the command line "sudo gem install sass" I can see the following message:
---------------------------------------------------------------------------------------------------------------
JPs-MacBook-Pro:~ janire$ sudo gem install sass
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
---------------------------------------------------------------------------------------------------------------
Have you ever had this problem? I have spent one thousand hours in front of my computer and I have not find the solution :-(
Dave McFarland
Treehouse TeacherSudo lets you run a command as a "super user" -- with administrator privileges. You need to type in your password when you are prompted to continue to run the command.
Did you type in your admin password for your computer? What happened?
You should get used to using the sudo command -- you'll use it a lot when you're installing from the command line.
James Barnett
39,199 PointsCheck out this video on how to use sudo
Janire Santibáñez
6,736 PointsThank you very much for your help! I will watch the video and I will try to figure it out ;-)