Just wondering what is the command to verify the currently installed version of any grunt module already installed using command line. For example
grunt-compass -v
Or
grunt-compass --version
do not work.
If you need a specific version of Grunt or a Grunt plugin, run npm install grunt@VERSION --save-dev where VERSION is the version you need.
To check the version of globally installed npm packages, run the npm list command with the -g or --global option added.
npm install -g grunt-cli. This will put the grunt command in your system path, allowing it to be 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 which has been installed next to a Gruntfile .
Use
npm list --depth=0
You can also use grep
to look for a specific package
npm list --depth=0 | grep grunt-contrib-compass
There is an npm ls
alias, for short.
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