i use "which node", the result is "/usr/bin/node"
Did you previously install node through apt-get?
I have the same issue and I did install previously node using apt-get
nvm... I opened another terminal and the node version updated :)
I did install previously node using apt-get
You need to apt-get remove all node versions installed through apt-get before using n or things will be very confusing.
@chelsh Has your problem been solved by removing any Node.js versions installed outside n?
@ tywebb
How can is that possible if npm/node is required for n? Or how do you mean that?
Btw. I'm using CentOS, so maybe its different here ...
@bigdx Node.js/NPM is not required for using n, you can also just clone this repo and install n this way:
git clone https://github.com/tj/n
cd n
sudo make install
Have you installed Node.js outside n somehow?
@maxrimue
Yes, npm and node.js are installed from the epel-repo ... to be able to install n ("npm install -g n") to be able to install node.js (in the latest stable version) ^^
@bigdx Well okay, I'd recommend to just remove all Node.js installations you have on your system, install n the git-way, and then install Node.js via n
@melxx001 same thing happened to me, opened another terminal and "problem" solved
Please note that I had to do this after updating to the latest version:
I'll close this now, as the problem seems to be solved
Most helpful comment
nvm... I opened another terminal and the node version updated :)