I'm trying to use uglifyjs via command line, and it's not going well.
I've tried many variations of
$ [sudo] npm install uglify-js -g, but in all cases, when I try to run uglifyjs as a command
$ uglifyjs it says command not found.
In every case, it seems like uglify gets installed. Version 2.4.0 is listed under
$ npm list -g as being installed.
I'm running: node v0.10.17 (installed via pkg from node homepage ) npm v1.3.8
I've restarted a couple of times after various installations, but I'm not getting any success.
/usr/local/share/npm/bin/uglifyjs -> /usr/local/share/npm/lib/node_modules/uglify-js/bin/uglifyjs email@example.com /usr/local/share/npm/lib/node_modules/uglify-js ├── firstname.lastname@example.org ├── email@example.com ├── firstname.lastname@example.org (email@example.com) └── firstname.lastname@example.org (email@example.com) Andrews-MacBook-Pro:node_modules andrewheins$ uglifyjs -bash: uglifyjs: command not found