Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-10-18 02:16:51 +0400
committerisaacs <i@izs.me>2010-10-18 02:16:51 +0400
commit61fea1cc15fc1b6ac1f9c755ad8bebca469bd57a (patch)
tree5a9a399f8dcdac693d6b826a94fa9a9b931ef383 /README.md
parent924b5bbb7b7dbed0ed4b29bec25711dc1b4748c3 (diff)
Make the .npmrc sample more clear, and add some words about sudoing
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/README.md b/README.md
index b116709f4..3cf2f3f41 100644
--- a/README.md
+++ b/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.