Grunt command not working
All npm installations gave errors and warnings, but said "Everything is fine" at the end. When I tried the pitch, I got these warnings.
>> Local Npm module "grunt-contrib-connect" not found. Is it installed?
>> Local Npm module "grunt-contrib-watch" not found. Is it installed?
>> Local Npm module "grunt-contrib-htmlmin" not found. Is it installed?
>> Local Npm module "grunt-contrib-cssmin" not found. Is it installed?
>> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
>> Local Npm module "grunt-bower-requirejs" not found. Is it installed?
>> Local Npm module "grunt-eslint" not found. Is it installed?
>> Local Npm module "grunt-jscs" not found. Is it installed?
How to fix it?
Are you installing on Mac or Windows? First, make sure the Grunt Client is installed in your directory:
$ npm install -g grunt-cli
Then:
$ npm install grunt-serve
Additional installation documentation can be found here: https://www.npmjs.org/package/grunt-serve
Try the following:
1) npm install -g grunt-cli
This will bring the grunt command into your system path, allowing it to run from any directory.
Note that installing grunt-cli does not install the Grunt task runner! The job of the Grunt CLI is simple: run the version of Grunt that was installed alongside the Gruntfile. This allows multiple versions of Grunt to be installed simultaneously on the same computer.
2) npm install grunt --save-dev
3) npm install grunt-serve
The easiest way to add Grunt and gruntplugins to your existing package.json is with npm install --save-dev. Not only will this install be installed locally, but it will automatically be added to the devDependencies section using the tilde version range.
for further help follow this link
http://gruntjs.com/getting-started