mihai-vlc / sublime-jsfmt

jsfmt plugin for Sublime Text
MIT License
477 stars 21 forks source link

Customisable Node Path #19

Closed MethodGrab closed 9 years ago

MethodGrab commented 9 years ago

If Node is in a non-standard path, eg /users/me/.nvm/current/bin, the plugin will fail to find the Node binary even though it exists in the $PATH:

JSFMT ==>
Couldn't find Node.js. Make sure it's in your $PATH by running `node -v` in your command-line.

To fix this, you could include an option in jsfmt.sublime-settings that allows users to provide an explicit path to their Node binary (as some other Sublime packages that use Node do).

mihai-vlc commented 9 years ago

I have made a commit that adds the node-path option in the settings file. I will release it soon. Meanwhile can you install this plugin manually and test it on your system ?

MethodGrab commented 9 years ago

That works perfectly, thanks for the quick fix!

mihai-vlc commented 9 years ago

Thank you too for suggesting it. Released ! Should be in package control in a few hours.