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/foldergrunt@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.6es5-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
Comments
0 comments
Please Sign in or Create an account to Post Comments