I have a strange issue on my server, when ever i try to install packages with npm
that require sudo
I run into issues and i have discovered that my su
and regular user use different node versions.
$ node -v i get node version 0.10.x
But when i do:
$ sudo node -v i get node version 0.6.x
My su
user for some reason is using a different node version than what i normally use and this causes compatibility issues when I npm install
packages that require sudo
.
I have tried sudo apt-get upgrade nodejs at no luck. how do i make su user use same node version as my regular user.