npm install grunt -g (or) npm install -g grunt-cli
Please check your computer environmental variable path, it should contain the path of AppData. EX: E:\$APPDATA\npm\;
MyComputer->Right click-> Properties ->Advances System Setting-> Environment Variables -> Path