MarksCode MarksCode - 1 year ago 92
Node.js Question

Do I need node.js to use UglifyJs2?

I'm trying to use the command line tools of UglifyJs to minify my files. On the git page it says to download it using npm:

npm install uglify-js -g

Is that the only way to download it? My website doesn't use node.js so I'm wondering if there's an alternate way.

Answer Source

You can download it directly from it's github repo. However, I do agree with JohnnyHK it's better to install via npm as it will handle any dependancies required by UglifyJS.