?
Solved

Compiling Sass Command Line Mac OS X

Posted on 2013-12-28
8
Medium Priority
?
876 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 40

Accepted Solution

by:
Eoin OSullivan earned 2000 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 40

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 40

Expert Comment

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

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
A professional opinion on which Apple product to buy, and a tidbit about the WWDC.
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…
Introduction to Processes

762 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