Victor Bocharsky
Victor Bocharsky

Reputation: 12306

How to know what version of UglifyCSS was installed?

I has installed UglifyCSS globally with command:

npm install -g uglifycss

How can I get current version of installed UglifyCSS?

P.S.

Version of UglifyJS I check with command:

uglifyjs -V

But when I try similar command for UglifyCSS:

uglifycss -V

I had an error:

unable to process "-V" with Error: ENOENT, no such file or directory '-V'

Same error when I try -v and --version

Upvotes: 2

Views: 3146

Answers (1)

user1438038
user1438038

Reputation: 6059

There is no command line option to get the installed version. The only valid options are --max-line-len, --expand-vars, --ugly-comments and --cute-comments.

However, you can run npm list -g or npm list to get list of installed packages and their version numbers. Or you can even add the package name to query a specific package, e.g. nmp list uglify-js.

Upvotes: 5

Related Questions