I'm unable to update nodejs, and I can't see why.
If I were to make a guess, I'd say that I have two repositories listed in apt-get, that both contain a nodejs package.
Here's what I've done:
Remove old version:
sudo apt-get remove --purge nodejs npm
Then, going by https://github.com/nodesource/distributions#installation-instructions, I've run:
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
And then:
sudo apt-get install -y nodejs
I then run:
nodejs -v
Which returns:
v0.10.25
Can anyone explain what's going wrong? And how I can remedy this situation?
Many thanks.
which nodejs
will tell you that. Then, runapt-get remove...
again and see what the output ofwhich nodejs
is after attempting to remove it.