The following packages have unmet dependencies: npm code example
Example: The following packages have unmet dependencies: libnode72 : Conflicts: nodejs-legacy E: Broken packages
sudo apt --fix-broken install
sudo apt-get update && sudo apt-get upgrade
sudo dpkg --configure -a
sudo apt-get install -f