I frequently encounter path related problems while compiling or running an app.I have two versions of node in my system, one is from official repo, the other manually installed from source. Today I wanted to compile brackets, when I run npm install it asked me to use later version such as 1.4.20. Default version of it is in /usr/bin/npm which did't work. The manually installed one is in /usr/local/bin/npm
Is there any way to make /usr/local/bin/npm as default path using update-alternatives or another method?
For example you can set default text editor with
sudo update-alternatives --config editor