I did sudo apt install nodejs and then checked my versions and I'm on version 8, which is a bit old.
sudo apt install nodejs
I did sudo npm install -g n and then n latest and it says it has version 11 active, but then node --version spits out 8 again.
sudo npm install -g n
Okay, removed the nodejs one, and then latest took over. Strange.
You can use nvm the Node version manager (https://github.com/creationix/nvm)
Please login first before posting an answer.