-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated for npm 1.0: the -g option installs to the global npm bin directory #1305
Conversation
…ectory. Without -g, the bin is in node-modules/.bin/coffee.
Or you could put your personal npm bin directory in your path and not install it globally. It's irresponsible to use |
Michael, I think that realistically, people would prefer for binaries installed via npm to be in a single location, rather than having to add (Edit: As Michael points out below, the rest of what I said didn't make a lick of sense and is hereby retracted.) |
Trevor, this is a suggestion for a documentation change for edit: |
Sorry, I've corrected my earlier remarks. I still think you're expecting a lot of extra work—either adding an obscure directory to (Edit in response to Michael's edit: Hmm, why isn't |
Updated for npm 1.0: the -g option installs to the global npm bin directory
I don't know either 1) the default |
Ugh, this kind of silly backwards-incompatible path-mucking stuff is starting to approach the levels of Java CLASSPATH insanity. Let's review the history:
So, we need to come up with a policy -- how does this sound: Our installation instructions will always include |
Sounds like a plan. On Apr 30, 2011, at 11:08 AM, jashkenasreply@reply.github.com wrote:
|
@jashkenas: Why suggest |
Well, the former approach is certainly less likely to lead to dupes of #1287. For people with the default npm installation, running npm without -g won't add coffee to their PATH. That's why -g should be the default in a short README that can't explain npm (much less PATH) in excruciating detail. Btw, I spend a couple of paragraphs trying to explain npm paths and -g in the book. On Apr 30, 2011, at 11:28 AM, michaelficarrareply@reply.github.com wrote:
|
I just noticed while reading |
That sounds like an excellent idea going forward, Ben. There could easily be three independent projects:
The first project would be included in the other two as a git submodule. |
I think the coffee-command one should be called Edit: Before somebody else publishes something entirely different called coffee. The name coffee is already taken by coffee-script for JavaScript related stuff, I think. |
Updated for npm 1.0: the -g option installs to the global npm bin directory.
Without -g, the bin is created in node-modules/.bin/coffee, which isn't expected to be in the path. This is not equivalent to cake install /usr/local/bin where it installs by default in /usr/local/bin, which is expected to be in the path.