When I compiled CoffeScript with sublime text2, I got the following prompt!
My node environment was installed through homebrew. coffee script is not a global installation. Ask how to compile it.
We have found a solution to the problem, which seems to be a bug of sublime text2. The default loading path for sublime text2 is
However, the path installed through homebrew defaults to
/usr/local/bin/nodeThe problem is that even if you set the environment variable of coffescript, it still cannot take effect. you need to execute the following command
sudo ln -s /usr/local/bin/node /usr/bin/node
Solution on stackoverflow