Node JS and NPM was working well before. Recently I have re-installed the Node JS, NPM and the problem started. After I install a module like example npm install -g bo
I had the same problem as well but installed it globally so the other answers didn't work.
The nodeJS install may not have added npm to your PATH so it's not recognised globally.
If there is an npm folder at "C:\Users(your username)\AppData\Roaming\npm" you've installed it for the current user
If there is an npm folder at "C:\Program Files\nodejs\node_modules\npm" or "C:\Program Files(x86)\nodejs\node_modules\npm" you've installed it globally for all users to access
Now depending whether you installed globally or for the current user will determine which PATH variable you are updating and with what path location
Close all terminals or programs that aren't able to find npm and open them up again