node is 8.11.4, but I thought that it removed anything if not installed via NodeSource repo. If I remember correctly, it removed it, attempted to setup the NodeSource repo, which failed, so went ahead and installed it anyway, which gave 8.11.4 from the Ubuntu repo, but doesn't install npm so the script failed. I tried installing npm manually but the script removed it. I hacked the script to install it again after installing nodejs but then it ended up with npm 5.8.0 and exhibited the problems in the other thread
I can take out node 10 and remove the nodesource repo and go round again if you want to check what happened.