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
npm install -g bo
Run npm config get prefix and check the correct npm path first and append the output to the PATH using command or adding manually.
npm config get prefix
npm config get prefix C:\mydev\tools\npm\npm set PATH=%PATH%;C:\mydev\tools\npm\npm
npm config get prefix C:\mydev\tools\npm\npm
set PATH=%PATH%;C:\mydev\tools\npm\npm