From 6740f2a107a4e24d04b5a79474dd63d5d4e45656 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 8 Sep 2011 00:51:51 -0700 Subject: [PATCH] Add 'curl|sudo sh' instructions --- README.md | 13 ++++++++++++- html/doc/README.html | 13 ++++++++++++- man1/README.1 | 20 +++++++++++++++++++- 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9ebb2e39..60595386 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,18 @@ To say "yes" to the 0.x cleanup, but skip the prompt: curl http://npmjs.org/install.sh | clean=yes sh -If that fails, try this: +If you get permission errors, you can either install node someplace that +you have permission to write to (recommended!) or you *can* place a **very +unsafe amount of trust** in me, and in your network, and do this: + + curl http://npmjs.org/install.sh | sudo sh + +**Note**: You need to `sudo` the `sh`, **not** the `curl`. Fetching stuff +from the internet typically doesn't require elevated permissions. + +## Dev Install + +To install the latest **unstable** development version from git: git clone https://github.com/isaacs/npm.git cd npm diff --git a/html/doc/README.html b/html/doc/README.html index 6c2df8e0..7eeb726d 100644 --- a/html/doc/README.html +++ b/html/doc/README.html @@ -35,7 +35,18 @@ and prior, clone the git repo and dig through the old tags and branches.
curl http://npmjs.org/install.sh | clean=yes sh
-If that fails, try this:
+If you get permission errors, you can either install node someplace that +you have permission to write to (recommended!) or you can place a very +unsafe amount of trust in me, and in your network, and do this:
+ +curl http://npmjs.org/install.sh | sudo sh
+
+Note: You need to sudo the sh, not the curl. Fetching stuff
+from the internet typically doesn't require elevated permissions.
To install the latest unstable development version from git:
git clone https://github.com/isaacs/npm.git
cd npm
diff --git a/man1/README.1 b/man1/README.1
index cafbdbcf..17a19e7b 100644
--- a/man1/README.1
+++ b/man1/README.1
@@ -56,7 +56,25 @@ curl http://npmjs\.org/install\.sh | clean=yes sh
.IP "" 0
.
.P
-If that fails, try this:
+If you get permission errors, you can either install node someplace that
+you have permission to write to (recommended!) or you \fIcan\fR place a \fBvery
+unsafe amount of trust\fR in me, and in your network, and do this:
+.
+.IP "" 4
+.
+.nf
+curl http://npmjs\.org/install\.sh | sudo sh
+.
+.fi
+.
+.IP "" 0
+.
+.P
+\fBNote\fR: You need to \fBsudo\fR the \fBsh\fR, \fBnot\fR the \fBcurl\fR\|\. Fetching stuff
+from the internet typically doesn\'t require elevated permissions\.
+.
+.SH "Dev Install"
+To install the latest \fBunstable\fR development version from git:
.
.IP "" 4
.