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:
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.