'nodemon not installed properly

I have been trying to install nodemon for my application by using the command:

npm install nodemon -g

And the following is the output I have received:

changed 116 packages, and audited 117 packages in 8s

16 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

However, when I run nodemon -v, it is showing error. Can someone help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source