Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errno 2 No Such file or directory Sass not compiling in subilme text 2

I've found a few related posts but none match my specific problem and I think i've tried everything.

This is the error I get:

[Errno 2] No such file or directory
[cmd:  [u'sass', u'--update', u'/Users/ryanwaters/Code/raw_portfolio/public/css/stylesheet.css.scss:/Users/ryanwaters/Code/raw_portfolio/public/css/stylesheet.css.css', u'--stop-on-error', u'--style', u'compressed']]
[dir:  /Users/ryanwaters/Code/raw_portfolio/public/css]
[path: /usr/local/bin/sass]
[Finished]

When I put which sass in command line I get /Users/ryanwaters/.rvm/gems/ruby-1.9.3-p429/bin/sass

I've changed the pass several times and still can't figure out what the problem is

like image 880
watersbythebay Avatar asked Feb 15 '23 18:02

watersbythebay


2 Answers

This seems pretty simple, but my problem was that I upgraded my mac's OS to Yosemite. I must've done something wrong, because my sass installation didn't carry over.

So, Sublime was throwing this error because it couldn't find sass. I reinstalled it, and everything worked as before.

like image 103
xEmptyCanx Avatar answered Feb 17 '23 09:02

xEmptyCanx


This question is nearly an exact duplicate of SASS won't build in Sublime Text 2 [Errno 2] No such File or Directory from several days ago. If you look at my answer there, you'll see that you need to change the path to sass. You can either edit your SASS.sublime-build file and change the "cmd": line to point to /Users/ryanwaters/.rvm/gems/ruby-1.9.3-p429/bin/sass, or you can make a symlink to it in one of Sublime's default search directories, like /usr/local/bin or /usr/bin.

like image 27
MattDMo Avatar answered Feb 17 '23 09:02

MattDMo