On Ubuntu 16.04, I mistakenly used root to install nvm, and then to install node.js 8.8.1 via nvm. I also used nvm alias default 8.8.1, thinking it would correct my
nvm alias default 8.8.1
First type
$ nvm deactivate
Then type
$ nvm uninstall 8.8.1