If you're having trouble installing nodemon globally like I was these steps solved it for me.
install npm with the following commands
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y nodejs