I have Node JS installed. How can I check if grunt is installed? Is it installed globably or does it reside in a specific folder?
For instance, node -v
will tell me I have v0.10.33
installed but I cant find any similar commands for Grunt.
The Grunt command line interface. Install this globally and you'll have access to the grunt command anywhere on your system. npm install -g grunt-cli. Note: The job of the grunt command is to load and run the version of Grunt you have installed locally to your project, irrespective of its version.
Like installing a specific version of grunt, run npm install grunt@VERSION --save-dev where VERSION is the version you need, and npm will install that version of Grunt in your project folder, adding it to your package. json devDependencies.
You can check the Grunt version by using grunt --version
or grunt -V
(uppercase 'V')
Grunt command line interface (CLI) options
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With