webstorm filewatcher does not work after Mac mony update

This is the current setting.

Arguments : $FileName$ $ProjectFileDir$/css/$FileNameWithoutExtension$.css --source-map true --output-style expanded
output paths to refresh : $ProjectFileDir$/css/$FileNameWithoutExtension$.css:$ProjectFileDir$/css/$FileNameWithoutExtension$.css.map

 

It's coming out like this. Why is that?

/usr/local/lib/node_modules/node-sass/bin/node-sass aaa.scss /Users/aaa/WebstormProjects/aaa/css/aaa.css --source-map true --output-style expanded
env: node: No such file or directory

Process finished with exit code 127

0
2 comments

looks like node is not on your $PATH. Does the issue persist if you start WebStorm from terminal using open -a /Applications/WebStorm.app?

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, WebStorm tries to load terminal environment by executing the following command on startup:

<your shell> -l -i -c '/Applications/webstorm.app/bin/printenv.py'

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

Some links you may find useful: http://apple.stackexchange.com/questions/106355/setting-the-system-wide-path-environment-variable-in-mavericks, http://apple.stackexchange.com/questions/51677/how-to-set-path-for-finder-launched-applications.. 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)

0

Thank you for your answer.
I fixed it by reinstalling the MacOS. 

0

Please sign in to leave a comment.