Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make the .npmrc sample more clear, and add some words about sudoing

  • Loading branch information...
commit 61fea1cc15fc1b6ac1f9c755ad8bebca469bd57a 1 parent 924b5bb
@isaacs isaacs authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 README.md
View
13 README.md
@@ -46,9 +46,9 @@ Create and edit a file at `~/.npmrc`. This is an ini-formatted file, which
you can use to set npm configs. Do something like this to it:
cat >>~/.npmrc <<NPMRC
- root = $HOME/.node_libraries
- binroot = $HOME/bin
- manroot = $HOME/share/man
+ root = ~/.node_libraries
+ binroot = ~/bin
+ manroot = ~/share/man
NPMRC
### Option 4: HOLY COW NOT RECOMMENDED!!
@@ -65,6 +65,13 @@ If this causes horrible things to happen, you can't say I didn't warn you over
and over again until everyone got sick of hearing about it and told me to shut
up already.
+It is on the roadmap to make npm do a bunch of chown/setuid stuff when sudoed,
+so eventually it'll actually be *safer* to run as root than as a user account,
+but that's a refactor that is slowly progressing.
+
+If you have feelings about sudo use and what it should imply, then please go add
+some comments and thoughts on [this issue](http://github.com/isaacs/npm/issues/issue/294).
+
## More Fancy Installing
First, get the code. Maybe use git for this. That'd be cool. Very fancy.
Please sign in to comment.
Something went wrong with that request. Please try again.