Solved

Compiling Sass Command Line Mac OS X

Posted on 2013-12-28
8
821 Views
Last Modified: 2013-12-30
I am new to Sass. I believe it is installed correctly on my Mac as when typed the command

sass -v, I received the proper response back at the command line,  Sass 3.2.12 (Media Mark).

I have changed the permissions in /Library/Ruby/Gems/ to be read/write.

When I try to compile my scss file with the update command, all I get back in the terminal services window is a response confirming the directory name:

Example:
~/Desktop/LessSass/CH4>sass --update var_styles.scss


Here is the response
-bash: /Users/myname/Desktop/LessSass/CH4: is a directory

My Library/Ruby/Gems.2.0 folder  and my LessSass folder have write enabled on them, so I don't know what I am doing wrong.  I am not getting any errors back. I can't seem to get the files to compile at the command line.


Thank you.
LT
0
Comment
Question by:LT1415
  • 4
  • 4
8 Comments
 
LVL 39

Accepted Solution

by:
Eoin OSullivan earned 500 total points
ID: 39744532
First change your root directory to the target directory as follows
cd ~/Desktop/LessSass/CH4

Open in new window

then run the sass compiler
sass --update var_styles.scss

Open in new window


Do you still get errors?
0
 

Author Comment

by:LT1415
ID: 39744851
That's it! Thanks. I thought I had already navigated to to directory but noooooo.
0
 

Author Comment

by:LT1415
ID: 39745075
I've requested that this question be closed as follows:

Accepted answer: 0 points for LT1415's comment #a39744851

for the following reason:

This resolved my problem.

Take each command in steps
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 39

Expert Comment

by:Eoin OSullivan
ID: 39744857
I could see your command line was wrong. That's why I suggested you split it to be sure all was ok.
If you want I can correct the command too but you should allocate points for the answer not close it yourself as you didn't provide a solution.
0
 

Author Comment

by:LT1415
ID: 39745080
Thank you I meant to assign the points. I am fumbling up just about everything today.
0
 
LVL 39

Expert Comment

by:Eoin OSullivan
ID: 39745199
No sweat. It happens.
0
 
LVL 39

Expert Comment

by:Eoin OSullivan
ID: 39746400
In terms of the original command ...
cd ~/Desktop/LessSass/CH4 && sass --update var_styles.scss 

Open in new window


The above line will run the two commands one after another
cd ~/Desktop/LessSass/CH4  - changes the directory to CH4
sass --update var_styles.scss - executes the sass compiler
0
 

Author Comment

by:LT1415
ID: 39746411
Duly noted! thank you....I am hours old in SASS and the command line
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question