Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

John Lukacs
John Lukacs
26,210 Points

gem install sass

its not working in my terminal here is the respons I got when trying to install sass gem install sass ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory what do I do to install sass

Hi What operating system are you using?

11 Answers

John Lukacs
John Lukacs
26,210 Points

imac I used sudo gem install sass. and that worked but it is not showing any work done in the termial. sass test.scss Errno::ENOENT: No such file or directory - test.scss Use --trace for backtrace

OK, just a couple of things to check then, are you in the directory where the sass file is located? and did you type in the output file (as example below)?

            sass test.scss test.css
John Lukacs
John Lukacs
26,210 Points

No such file or directory - test.scss Use --trace for backtrace.

Ok, in the console, are you running the command in the directory test.scss is located?

John Lukacs
John Lukacs
26,210 Points

Ummmmm I don't know you mean the terminal

yeah thats the one :)

John Lukacs
John Lukacs
26,210 Points

In dreamweaver the sass file in labeled as whatever.sass but in the video he says to label it .scss will it still work? I think I have to code a little to see if this thing works

sass and scss are different file types used by SASS, if you have told it to use test.scss then it will not automatically use test.sass, so you either need to change the file type to scss or tell it to use test.sass.

John Lukacs
John Lukacs
26,210 Points

Same answer in the terminal

ok, in your terminal type ll and then hit return, do you see test.scss or test.sass in the file list?

John Lukacs
John Lukacs
26,210 Points

syntax error near unexpected token `||

sorry don't think that came out correctly type two lowercase LL

ok, in the terminal window type pwd, this should hive you the current directory that you are in, is this the directory where you have saved the test.scss file? if so type ls (lowercase L) and this should give you a directory listing, check here to make sure test.scss is there.

John Lukacs
John Lukacs
26,210 Points

What is hive do you mean hide. I haven't saved anything to the termial I saved it on my dream ww ummmm nothing happened when I typed lower l nothing is there

sorry that should have said give, ok just so we can clear things up, let me know if any of these are wrong

your using dreamweaver your running the sass commands in terminal you have saved the test.scss file in dreamweaver (which will have then saved it in to your file system)

John Lukacs
John Lukacs
26,210 Points

Yuppers but it is not working

Ok, so as not to keep messing you around, my best advice is to watch the installing and using sass video, on the sass basics course.

Then double check you have saved the file as test.scss, and that you have navigated, within the terminal, to the directory/folder where dreamweaver has saved it, then run the command again.

I pretty sure that the problem is that you are trying to run the sass terminal command in the wrong directory/folder and therefore sass cannot find the test.scss file. but without actually using your computer myself we could just end up going round in circles.