Browse files

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

  • Loading branch information...
1 parent 924b5bb commit 61fea1cc15fc1b6ac1f9c755ad8bebca469bd57a @isaacs isaacs committed Oct 17, 2010
Showing with 10 additions and 3 deletions.
  1. +10 −3
@@ -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
@@ -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](
## More Fancy Installing
First, get the code. Maybe use git for this. That'd be cool. Very fancy.

0 comments on commit 61fea1c

Please sign in to comment.