Command not found on AWS EC2 when npm

If you are on a AWS EC2 instance and you're trying to install some package using npm: sudo npm install -g nodemon And see the following »