I use msysgit for Windows, whenever I install something ie Node.js or a package through NPM, I always get a command not found before rebooting the system. Even closing git bash and re-opening I have the same problem. I set the environment paths for npm and node:
C:\Ruby200\bin;C:\Python27;C:\Program Files\nodejs;C:\Users\Predator\AppData\Roaming\npm
Edit:
For example, using the git bash window, I have Node.Js and NPM installed. I want to install the package globally, so run:
npm install grunt -g
Then Grunt installs globally, then I verify that the grunt is installed by running
grunt --version
Received error:
sh: grunt: command not found
This happens with all NPM packages, it even happened with Node.js and npm when I installed them. How to restart git bash to take into account recently installed packages?