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>2011-02-21 16:55:36 +0300
committerisaacs <i@izs.me>2011-02-21 16:55:36 +0300
commit8ee3c3eba1ca063eaa613309cd956ddcae29b760 (patch)
tree23b6838711989adfadac915909b20e62fed9528d /README.md
parent2a00ad4256b4b8ed320fb2264d46afb374a2f04a (diff)
Closes GH-623 correct branch checkout instruction
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/README.md b/README.md
index a959d009c..b0e424ff0 100644
--- a/README.md
+++ b/README.md
@@ -12,26 +12,24 @@ To install on older versions of node, do the following:
git clone git://github.com/isaacs/npm.git ./npm
cd npm
- git checkout 0.2
+ git checkout origin/0.2
make dev
## Simple Install
To install npm with one command, do this:
- curl http://npmjs.org/install.sh | sudo sh
+ curl http://npmjs.org/install.sh | sh
If that fails, try this:
git clone http://github.com/isaacs/npm.git
cd npm
- git submodule update --init
sudo make install
If you're sitting in the code folder reading this document in your
terminal, then you've already got the code. Just do:
- git submodule update --init
sudo make install
and npm will install itself.
@@ -43,10 +41,14 @@ this code and node, you can do:
## Permissions
-**tl;dr** Use `sudo` when running the `install`,
-`rm`, and `test` commands. If you forget, that's fine, it'll fail and
-remind you. If you want it back the way it was, do `npm config set
-unsafe-perm true`
+**tl;dr**
+
+* Use `sudo` for greater safety.
+* To enforce this added safety, do `npm config set unsafe-perm false`,
+ or add `--no-unsafe` to the command line.
+* npm will downgrade permissions if it's root before running any build
+ scripts that package authors specified.
+* If you were fine before, you can safely ignore this change.
### More details...