Sublime text2 cannot compile coffee script

  node.js, question

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/usr/bin,
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 commandsudo ln -s /usr/local/bin/node /usr/bin/node
Solution on stackoverflow