nibblebot / sublime-js2coffee

:warning: UNMAINTAINED :warning:
MIT License
30 stars 8 forks source link

ubuntu: /bin/sh: 1: js2coffee: not found #15

Open jcollum-hcg opened 10 years ago

jcollum-hcg commented 10 years ago

$ which js2coffee /home/dev/.nvm/v0.10.23/bin/js2coffee

When I run js2coffee in sublime it tells me the command is not found. Restarted Sublime, didn't help. This is in Sublime 2.

MethodGrab commented 10 years ago

I get this as well because I'm also using NVM. As a workaround, try changing line 34 of JS2Coffee.py (https://github.com/nibblebot/sublime-js2coffee/blob/master/JS2Coffee.py#L34) from 'js2coffee' to '/home/dev/.nvm/v0.10.23/bin/js2coffee'. This won't be a permanent solution, any updates to the plugin will overwrite the change.