@@ -4,17 +4,26 @@ This is just enough info to get you up and running.
4
4
5
5
More info available via ` man npm ` .
6
6
7
+ ## IMPORTANT
8
+
9
+ You need node v0.2.0 or higher to run this program.
10
+
11
+ You shouldn't use sudo with it.
12
+
7
13
## Simple Install
8
14
9
15
To install npm, do this:
10
16
11
17
curl http://npmjs.org/install.sh | sh
12
18
13
19
If it dies with a "Permission Denied" or EACCESS error, then that probably
14
- means that you are running node in a shared root-owned location. In that
15
- case, you'll have to use sudo .
20
+ means that you are running node in a shared root-owned location. You've
21
+ got options .
16
22
17
- curl http://npmjs.org/install.sh | sudo sh
23
+ Using sudo with npm is Very Not Recommended. Either chown the folder that
24
+ is your node install prefix, or set up a ` .npmrc ` file pointing ` root ` ,
25
+ ` binroot ` , and ` manroot ` to folders that you own. (The .npmrc is just an
26
+ ini-formatted file, so you can use any editor to do this.)
18
27
19
28
## More Fancy Installing
20
29
@@ -35,7 +44,9 @@ on it, you can do this:
35
44
36
45
If you check out the Makefile, you'll see that these are just running npm commands
37
46
at the cli.js script directly. You can also use npm without ever installing
38
- it by using ` ./cli.js ` instead of "npm".
47
+ it by using ` node cli.js ` instead of "npm". Set up an alias if you want, that's
48
+ fine. (You'll still need read permission to the root/binroot/manroot folders,
49
+ but at this point, you probably grok all that anyway.)
39
50
40
51
## Uninstalling
41
52
@@ -47,6 +58,14 @@ Or, if that fails,
47
58
48
59
make uninstall
49
60
61
+ ## Install Problems
62
+
63
+ There's was an issue prior to npm version 0.2.0 where packages whose names contained
64
+ hyphen characters would be odd.
65
+
66
+ If you've installed any packages with ` - ` in the name prior to 0.2.0, then you ought
67
+ to remove and reinstall them.
68
+
50
69
## More Docs
51
70
52
71
Check out the [ docs] ( http://github.com/isaacs/npm/blob/master/doc/ ) .
0 commit comments