node.js - How do I uninstall nodejs installed from pkg (Mac OS X)? - Stack Overflow
Method of uninstalling nodejs from macOS if it has been installed from a package. (the idea being that you may want to manage it via Homebrew instead)
I've had an issue with a Macbook Pro on one particular network where, even though I've set the computer name via system preferences, in the terminal (and via hostname) it's showing as the network-generated name.
This seems to help tidy things up.