When using npm install uglify-js without a -g, the command line tool doesn't appear. I made a quick note of this behavior for people that aren't as familiar with npm/node.
Add global install note to readme for npm when using command-line tool
Add global install note to org readme for npm when using command-line…
No, no, no. -g shouldn't be used on shared machines. Just add ~/node_modules (or wherever npm is configured to put binaries) to your PATH. Installing everything to system directories was not the intended use of npm. If it was, it wouldn't require a special flag.
Cool, thanks! Could you update the documentation to provide this information? My motivation for this was simply to fix using the command-line tool with npm. The README doesn't document how to do this and it's causing issues for people that aren't super familiar with npm.
Sorry, I'm not a collaborator. I believe @mishoo is the only one with push access to this repo. But if you make a nice pull request with the kind of documentation you'd like (that doesn't encourage users to mess with anything outside their home directory), I'm sure he'd pull it.