Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out the version of an installed grunt module?

Tags:

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.

like image 387
dev73 Avatar asked Dec 27 '13 12:12

dev73


People also ask

How do I know my grunt version?

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.

How do I check my npm version?

To check the version of globally installed npm packages, run the npm list command with the -g or --global option added.

What is grunt cli npm?

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 .


1 Answers

Use

npm list --depth=0 

You can also use grep to look for a specific package

npm list --depth=0 | grep grunt-contrib-compass 

command.png

There is an npm ls alias, for short.

like image 199
bevacqua Avatar answered Oct 03 '22 22:10

bevacqua