How to set sass watcher?

I have the following settings:


But PHPS throws the below errors when I tried to save a sass file:

/Users/roy/.rvm/gems/ruby-2.1.3/bin/sass --no-cache --update style.scss:style.css
env: ruby_executable_hooks: No such file or directory

I'm using rvm. I got that path from `which sass`.
How do I set it correctly?

Comment actions Permalink

Please try running the same command from terminal:
- cd to the directory where your style.scss is located
- run /Users/roy/.rvm/gems/ruby-2.1.3/bin/sass --no-cache --update style.scss:style.css

Does it work? If yes, try running PHPStorm in terminal by

open -a /Applications/ - does the problem persist?
Comment actions Permalink

Hi thanks for helping to troubleshoot.

There was a problem with the path I specified.
I also don't remember if I installed rvm/sass while PHPS is running so I went ahead and restart it.

So after correcting the path (verified it works in terminal) and doing a restart of PHPS it's working now.

Comment actions Permalink



I have a similar issue with WebStorm but if I use the terminal to run the code scss works fine. Although I cannot run the watcher from inside webstorm.

However, if as you suggested I run the below

open -a /Applications/

The watcher works as expected. I presume this means that WebStorm is unable to access my ENV variables. So I need to link or duplicate. How would I do that?

*Currently looks through documentations*


Comment actions Permalink

on MacOSX the environment variables differ between GUI applications and within the terminal. Terminal environment is only available to applications started from terminal. To solve this problem, WebStrom tries to load terminal environment by executing the following command on startup:

<your shell> -l -i -c '/Applications/'

Seems this command can't retrieve all needed stuff in your case - thus the issue.

Some links you may find useful:,, The problem is that the way to define system-wide environment variables on Mac changes from one version to another (even minor system updates may break your environment)

Comment actions Permalink

Thanks for this, it makes a lot of sense and I will make the adjustments when I get time. For now starting from the terminal will get me over the problem short term.


Please sign in to leave a comment.