Solved

Compiling Sass Command Line Mac OS X

Posted on 2013-12-28
8
826 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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

830 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