I have installed node.js
from repositories (v0.10.25
, Ubuntu 14.04.3, nodejs-legacy
package).
I need a specific version (v0.10.35
) for a project.
I installed n
(sudo npm install -g n
) and installed the needed node.js
version using it (sudo n 0.10.35
).
Now this thing happens:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
$ which node
/usr/local/bin/node
$ node --version
v0.10.25
$ /usr/local/bin/node --version
v0.10.35
Questions:
What is going on here? Shouldn't be the same executable used in both cases with the same version being reported?
I can try to uninstall
node.js
installed from repositories, but is this safe?