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-11-15 18:54:19 +0300
committerisaacs <i@izs.me>2010-11-15 19:02:12 +0300
commit3901ac170e74d2be8fe1c63ebfc0b47b8d9eb2de (patch)
tree9f25274d1d0dd849080acaf3a2cd42931bb1e685 /README.md
parent65b290c10c8c4adbbca9de4eb77f1bb40f67a10c (diff)
Be more specific with the chown instructions
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/README.md b/README.md
index 6cc5c7d49..83039946b 100644
--- a/README.md
+++ b/README.md
@@ -27,10 +27,15 @@ and package installations can run arbitrary scripts.
### Option 1: Take ownership
-This is good if you have a single-user machine. Run this command once, and
-never use sudo again to install stuff in /usr/local:
+Don't do this if you don't know what it does! If you have software in
+/usr/local that depends on a specific ownership (such as MySQL), then it
+might break if you change its ownership. Be careful. Unix does not
+assume you don't know what you're doing!
- sudo chown -R $USER /usr/local
+This is convenient if you have a single-user machine. Run this command
+once, and never use sudo again to install stuff in /usr/local:
+
+ sudo chown -R $USER /usr/local/{share/man,bin,lib/node}
You could also give your user permission to write into that directory by
making it group-writable and adding your user to the group that owns it.