Solved

Compiling Sass Command Line Mac OS X

Posted on 2013-12-28
8
811 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
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now