3gwebtrain
3gwebtrain

Reputation: 15303

'cmd' - not able to get the `grunt` version

I have installed the grunt using this command : npm install -g grunt-cli after i installed i am trying to fetch the grunt version using this command :

grunt --version - But i am not getting any output. what is the issue here? do i require to set the env variable or something?

please help me.

Upvotes: 0

Views: 145

Answers (1)

Alexander Staroselsky
Alexander Staroselsky

Reputation: 38807

You would need to install Grunt globally as admin. Grunt docs recommend to use sudo when installing. This would be recommended for any Grunt or Gulp plugins you are installing globally. Run the same command npm install -g grunt-cli in admin command line then try grunt --version once more.

I'd recommend posting a separate question for the grunt processing as that involves much more functionality. A good example on a sample gruntfile can be found at Sample Gruntfile and includes processing js and html files for various tasks.

Let me know if that helps.

Thanks!

Upvotes: 1

Related Questions