1
- npm(1) -- node package manager
1
+ npm(1) -- a JavaScript package manager
2
2
==============================
3
3
[ ![ Build Status] ( https://img.shields.io/travis/npm/npm/master.svg )] ( https://travis-ci.org/npm/npm )
4
4
## SYNOPSIS
@@ -36,11 +36,11 @@ paths, etc.) then read on.
36
36
## Fancy Install (Unix)
37
37
38
38
There's a pretty robust install script at
39
- < https://www.npmjs.org /install.sh > . You can download that and run it.
39
+ < https://www.npmjs.com /install.sh > . You can download that and run it.
40
40
41
41
Here's an example using curl:
42
42
43
- curl -L https://npmjs.org /install.sh | sh
43
+ curl -L https://npmjs.com /install.sh | sh
44
44
45
45
### Slightly Fancier
46
46
@@ -62,43 +62,23 @@ arbitrary config keys using the `./configure --key=val ...`, and then
62
62
run npm commands by doing ` node cli.js <cmd> <args> ` . (This is helpful
63
63
for testing, or running stuff without actually installing npm itself.)
64
64
65
- ## Fancy Windows Install
65
+ ## Windows Install or Upgrade
66
66
67
- You can download a zip file from < https://npmjs.org/dist/ > , and unpack it
67
+ You can download a zip file from < https://github.com/npm/npm/releases > , and unpack it
68
68
in the same folder where node.exe lives.
69
69
70
+ The latest version in a zip file is 1.4.12. To upgrade to npm 2, follow the
71
+ Windows upgrade instructions in the npm Troubleshooting Guide:
72
+
73
+ < https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows >
74
+
70
75
If that's not fancy enough for you, then you can fetch the code with
71
76
git, and mess with it directly.
72
77
73
78
## Installing on Cygwin
74
79
75
80
No.
76
81
77
- ## Permissions when Using npm to Install Other Stuff
78
-
79
- ** tl;dr**
80
-
81
- * Use ` sudo ` for greater safety. Or don't, if you prefer not to.
82
- * npm will downgrade permissions if it's root before running any build
83
- scripts that package authors specified.
84
-
85
- ### More details...
86
-
87
- As of version 0.3, it is recommended to run npm as root.
88
- This allows npm to change the user identifier to the ` nobody ` user prior
89
- to running any package build or test commands.
90
-
91
- If you are not the root user, or if you are on a platform that does not
92
- support uid switching, then npm will not attempt to change the userid.
93
-
94
- If you would like to ensure that npm ** always** runs scripts as the
95
- "nobody" user, and have it fail if it cannot downgrade permissions, then
96
- set the following configuration param:
97
-
98
- npm config set unsafe-perm false
99
-
100
- This will prevent running in unsafe mode, even as non-root users.
101
-
102
82
## Uninstalling
103
83
104
84
So sad to see you go.
@@ -173,13 +153,13 @@ help config` to learn about all the options you can set there.
173
153
174
154
## More Docs
175
155
176
- Check out the [ docs] ( https://www .npmjs.org/doc / ) ,
177
- especially the [ faq] ( https://www .npmjs.org/doc /faq.html ) .
156
+ Check out the [ docs] ( https://docs .npmjs.com / ) ,
157
+ especially the [ faq] ( https://docs .npmjs.com/misc /faq ) .
178
158
179
159
You can use the ` npm help ` command to read any of them.
180
160
181
161
If you're a developer, and you want to use npm to publish your program,
182
- you should [ read this] ( https://www .npmjs.org/doc /developers.html )
162
+ you should [ read this] ( https://docs .npmjs.com/misc /developers )
183
163
184
164
## Legal Stuff
185
165
@@ -199,7 +179,7 @@ specific purpose, or lack of malice in any given npm package.
199
179
200
180
If you have a complaint about a package in the public npm registry,
201
181
and cannot [ resolve it with the package
202
- owner] ( https://www .npmjs.org/doc/ misc/npm- disputes.html ) , please email
182
+ owner] ( https://docs .npmjs.com/ misc/disputes ) , please email
203
183
< support@npmjs.com > and explain the situation.
204
184
205
185
Any data published to The npm Registry (including user account
@@ -228,8 +208,6 @@ When you find issues, please report them:
228
208
229
209
* web:
230
210
< https://github.com/npm/npm/issues >
231
- * email:
232
- < npm-@googlegroups.com >
233
211
234
212
Be sure to include * all* of the output from the npm command that didn't work
235
213
as expected. The ` npm-debug.log ` file is also helpful to provide.
0 commit comments