Last Updated: February 25, 2016
·
2.132K
· vvo

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.