Using uglifyjs with nodejs in windows Using uglifyjs with nodejs in windows node.js node.js

Using uglifyjs with nodejs in windows


For you to run any NodeJS app in any environment(folder). Do the following

  1. Install the app globally

    npm install uglify-js -g 
  2. Exit and re-open the command prompt

  3. Run uglifyJS without node command

    uglifyjs [options] filename


You can run it by :

node C:\gitrepos\uglifyjs\bin\uglifyjs -o inputfile.min.js inputfile.js


You could just add the C:\gitrepos\uglifyjs\bin path to your...path environment variable.