-bash: yo: command not found error after installing yeoman

Run the following commands:

npm uninstall -g yo , npm cache clean, npm i -g yo