Sublime Text 2 $PATH nvm and Linux
When working with Sublime Text 2, you may want to use some packages that will try to use node.js related binaries.
Like "node" or any globally installed node module.
For this to work you have to understand how your $PATH is computed on linux. See https://help.ubuntu.com/community/Lubuntu/Boot_Install_Login#Setting_environment_variables_upon_login.
tl;dr;
All you have to do is create a new ~/.xsessionrc file which will contain:
PATH="$HOME/path/to/nvm/v0.x.x/bin:$PATH"
And then "node" will be available to graphical applications not started from the terminal.
Written by Vincent Voyer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublime text
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#