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>2010-09-11 03:28:35 +0400
committerisaacs <i@izs.me>2010-09-11 03:28:35 +0400
commit266f1c93bb76a0d74704d0b9eb55b3c382a3d3af (patch)
tree3cc96c4328ae8099580a45cc637c329103e8e73d /README.md
parent1daed65ea321609ba12d0b4ea4ffaf25cf313fc9 (diff)
Update the README with more helpful info.
Diffstat (limited to 'README.md')
-rw-r--r--README.md27
1 files changed, 23 insertions, 4 deletions
diff --git a/README.md b/README.md
index 89053bbdb..7b5026e0e 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,12 @@ This is just enough info to get you up and running.
More info available via `man npm`.
+## IMPORTANT
+
+You need node v0.2.0 or higher to run this program.
+
+You shouldn't use sudo with it.
+
## Simple Install
To install npm, do this:
@@ -11,10 +17,13 @@ To install npm, do this:
curl http://npmjs.org/install.sh | sh
If it dies with a "Permission Denied" or EACCESS error, then that probably
-means that you are running node in a shared root-owned location. In that
-case, you'll have to use sudo.
+means that you are running node in a shared root-owned location. You've
+got options.
- curl http://npmjs.org/install.sh | sudo sh
+Using sudo with npm is Very Not Recommended. Either chown the folder that
+is your node install prefix, or set up a `.npmrc` file pointing `root`,
+`binroot`, and `manroot` to folders that you own. (The .npmrc is just an
+ini-formatted file, so you can use any editor to do this.)
## More Fancy Installing
@@ -35,7 +44,9 @@ on it, you can do this:
If you check out the Makefile, you'll see that these are just running npm commands
at the cli.js script directly. You can also use npm without ever installing
-it by using `./cli.js` instead of "npm".
+it by using `node cli.js` instead of "npm". Set up an alias if you want, that's
+fine. (You'll still need read permission to the root/binroot/manroot folders,
+but at this point, you probably grok all that anyway.)
## Uninstalling
@@ -47,6 +58,14 @@ Or, if that fails,
make uninstall
+## Install Problems
+
+There's was an issue prior to npm version 0.2.0 where packages whose names contained
+hyphen characters would be odd.
+
+If you've installed any packages with `-` in the name prior to 0.2.0, then you ought
+to remove and reinstall them.
+
## More Docs
Check out the [docs](http://github.com/isaacs/npm/blob/master/doc/).