1

I am trying to install grunt-cli in my pc globally by command

npm install -g grunt-cli

after this I am not getting any error. But when I try to run grunt command I am getting error.

Screen shot has been attached.enter image description here

Kishore Indraganti
  • 1,296
  • 3
  • 17
  • 34

3 Answers3

0

Please check Grunt on Windows 8: 'grunt' is not recognized.

You need to correct PATH from environment variable.

Community
  • 1
  • 1
NeiL
  • 791
  • 8
  • 35
0

Here you have installed grunt but not configured it. You will have to create a Gruntfile.js which is read by grunt and it should have a default task. This default task will be run when you are typing "grunt". And this file should be exactly in the folder from where you are running "grunt" command. For a kick start go through the following url: http://www.thegeekstuff.com/2014/08/grunt-introduction/

It gives a very easy and minimized introduction to getting started with grunt avoiding all the complexities which you can explore later once you are comfortable.

Luke P. Issac
  • 1,471
  • 15
  • 32
0

Kishore,

It looks like grunt isn't in your path. Try running path=%PATH%;%APPDATA%\npm in your shell.

Daniel Timberlake
  • 1,179
  • 6
  • 15