Get version of packages in npm

To get the npm version itself you can run npm –version.

For getting version of locally installed packages, run npm list. For globally installed packages run npm list–g.

You can get the version of a specific package by just adding the package name to argument. For example npm list grunt. This will output:

projectName@projectVersion /path/to/project/folder

 grunt@0.4.1

If you didn’t pass the package name into argument you will get the list of all packages with the version.

  cli-color@0.1.6 

es5-ext@0.7.1

coffee-script@1.3.3

  less@1.3.0

  sentry@0.1.2

  file@0.2.1

underscore@1.3.3

  uglify-js@1.2.6