I've been all over looking for a solution. I've read that I should purge both node and nodejs, do a fresh installation then link the two together. This did not work. I was told to try nodejs legacy. This did not work.
I am trying to install something that requires a newer version of node. My nodejs has upgraded just fine, but node, unfortunately, has not.
node -v v5.4.1 nodejs -v v8.**** (latest) I can't be the only person who is experiencing this. Does anyone have a fix? Running Ubuntu 16.04
fappycow@fappycow-desktop:~$ type -a node nodejs node is /home/fappycow/.nvm/versions/node/v5.4.1/bin/node node is /usr/local/bin/node node is /usr/bin/node nodejs is /usr/bin/nodejs 21 Answer
The problem here is that node has been installed with nvm. Whenever you want to upgrade to the latest version of node, just run nvm install node.
I would also uninstall nodejs: sudo apt purge nodejs
Using nvm is much better than the nodejs binary.
7