I had version 8.10.0 installed and updated to version 10.4.1 with npm:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
All good without errors , but when executing:
nodejs -v
in the terminal, inform me that I continue with 8.10.0?