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 trialJohn Lukacs
26,806 Pointsgem 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
11 Answers
John Lukacs
26,806 Pointsimac 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
bobkingstone
27,869 PointsOK, 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
26,806 PointsNo such file or directory - test.scss Use --trace for backtrace.
bobkingstone
27,869 PointsOk, in the console, are you running the command in the directory test.scss is located?
John Lukacs
26,806 PointsUmmmmm I don't know you mean the terminal
bobkingstone
27,869 Pointsyeah thats the one :)
John Lukacs
26,806 PointsIn 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
bobkingstone
27,869 Pointssass 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
26,806 PointsNo its not working
John Lukacs
26,806 PointsSame answer in the terminal
bobkingstone
27,869 Pointsok, in your terminal type ll and then hit return, do you see test.scss or test.sass in the file list?
John Lukacs
26,806 Pointssyntax error near unexpected token `||
bobkingstone
27,869 Pointssorry don't think that came out correctly type two lowercase LL
John Lukacs
26,806 Pointscommand not found.
bobkingstone
27,869 Pointsok, 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
26,806 PointsWhat 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
bobkingstone
27,869 Pointssorry 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
26,806 PointsYuppers but it is not working
bobkingstone
27,869 PointsOk, 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.
bobkingstone
27,869 Pointsbobkingstone
27,869 PointsHi What operating system are you using?