Skip to content

Commit

Permalink
Add 'curl|sudo sh' instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 8, 2011
1 parent 6f7ccb3 commit 6740f2a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion html/doc/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ <h2 id="Simple-Install">Simple Install</h2>

<pre><code>curl http://npmjs.org/install.sh | clean=yes sh</code></pre>

<p>If that fails, try this:</p>
<p>If you get permission errors, you can either install node someplace that
you have permission to write to (recommended!) or you <em>can</em> place a <strong>very
unsafe amount of trust</strong> in me, and in your network, and do this:</p>

<pre><code>curl http://npmjs.org/install.sh | sudo sh</code></pre>

<p><strong>Note</strong>: You need to <code>sudo</code> the <code>sh</code>, <strong>not</strong> the <code>curl</code>. Fetching stuff
from the internet typically doesn't require elevated permissions.</p>

<h2 id="Dev-Install">Dev Install</h2>

<p>To install the latest <strong>unstable</strong> development version from git:</p>

<pre><code>git clone https://github.com/isaacs/npm.git
cd npm
Expand Down
20 changes: 19 additions & 1 deletion man1/README.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
.
Expand Down

0 comments on commit 6740f2a

Please sign in to comment.