diff options
author | isaacs <i@izs.me> | 2011-02-21 16:55:36 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-02-21 16:55:36 +0300 |
commit | 8ee3c3eba1ca063eaa613309cd956ddcae29b760 (patch) | |
tree | 23b6838711989adfadac915909b20e62fed9528d /README.md | |
parent | 2a00ad4256b4b8ed320fb2264d46afb374a2f04a (diff) |
Closes GH-623 correct branch checkout instruction
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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... |