Provide global install info on npm for using command-line tool #245

Open
wants to merge 2 commits into
from

Projects

None yet

2 participants

@kyledrake

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.

@michaelficarra
Contributor

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.

@kyledrake

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.

@michaelficarra
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment