Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 491ac6a

Browse files
othiym23Julien Gilli
authored andcommitted
deps: upgrade npm to 2.3.0
PR: #9086 PR-URL: #9086 Reviewed-By: Julien Gilli <julien.gilli@joyent.com> Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
1 parent e670732 commit 491ac6a

File tree

705 files changed

+30689
-8490
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

705 files changed

+30689
-8490
lines changed

deps/npm/.eslintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"no-lonely-if": 1,
1313
"no-unused-vars": [2, {"vars" : "all", "args" : "after-used"}],
1414
"no-mixed-requires": 0,
15-
"space-infix-ops": 0
15+
"space-infix-ops": 0,
16+
"key-spacing": 0,
17+
"no-multi-spaces": 0
1618
}
1719
}

deps/npm/.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ before_install:
88
- "npm config set spin false"
99
- "npm install -g npm@^2"
1010
- "sudo mkdir -p /var/run/couchdb"
11-
script: "npm run-script tap"
11+
script: "npm run-script test-all"

deps/npm/CHANGELOG.md

Lines changed: 424 additions & 0 deletions
Large diffs are not rendered by default.

deps/npm/CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
issues](https://github.com/npm/npm/search?q=Similar%20issues&type=Issues).
88
* Ensure your new issue conforms to the [Contributing
99
Guidelines](https://github.com/npm/npm/wiki/Contributing-Guidelines).
10+
11+
Participation in this open source project is subject to the [npm Code
12+
of Conduct](http://www.npmjs.com/policies/conduct).

deps/npm/README.md

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
npm(1) -- node package manager
1+
npm(1) -- a JavaScript package manager
22
==============================
33
[![Build Status](https://img.shields.io/travis/npm/npm/master.svg)](https://travis-ci.org/npm/npm)
44
## SYNOPSIS
@@ -36,11 +36,11 @@ paths, etc.) then read on.
3636
## Fancy Install (Unix)
3737

3838
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.
4040

4141
Here's an example using curl:
4242

43-
curl -L https://npmjs.org/install.sh | sh
43+
curl -L https://npmjs.com/install.sh | sh
4444

4545
### Slightly Fancier
4646

@@ -62,43 +62,23 @@ arbitrary config keys using the `./configure --key=val ...`, and then
6262
run npm commands by doing `node cli.js <cmd> <args>`. (This is helpful
6363
for testing, or running stuff without actually installing npm itself.)
6464

65-
## Fancy Windows Install
65+
## Windows Install or Upgrade
6666

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
6868
in the same folder where node.exe lives.
6969

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+
7075
If that's not fancy enough for you, then you can fetch the code with
7176
git, and mess with it directly.
7277

7378
## Installing on Cygwin
7479

7580
No.
7681

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-
10282
## Uninstalling
10383

10484
So sad to see you go.
@@ -173,13 +153,13 @@ help config` to learn about all the options you can set there.
173153

174154
## More Docs
175155

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).
178158

179159
You can use the `npm help` command to read any of them.
180160

181161
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)
183163

184164
## Legal Stuff
185165

@@ -199,7 +179,7 @@ specific purpose, or lack of malice in any given npm package.
199179

200180
If you have a complaint about a package in the public npm registry,
201181
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
203183
<support@npmjs.com> and explain the situation.
204184

205185
Any data published to The npm Registry (including user account
@@ -228,8 +208,6 @@ When you find issues, please report them:
228208

229209
* web:
230210
<https://github.com/npm/npm/issues>
231-
* email:
232-
<npm-@googlegroups.com>
233211

234212
Be sure to include *all* of the output from the npm command that didn't work
235213
as expected. The `npm-debug.log` file is also helpful to provide.

deps/npm/doc/api/npm-ls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ List packages in the global install prefix instead of in the current
5252
project.
5353

5454
Note, if parseable is set or long isn't set, then duplicates will be trimmed.
55-
This means that if a submodule a same dependency as a parent module, then the
55+
This means that if a submodule has the same dependency as a parent module, then the
5656
dependency will only be output once.

deps/npm/doc/api/npm-restart.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
1-
npm-restart(3) -- Start a package
2-
=================================
1+
npm-restart(3) -- Restart a package
2+
===================================
33

44
## SYNOPSIS
55

66
npm.commands.restart(packages, callback)
77

88
## DESCRIPTION
99

10-
This runs a package's "restart" script, if one was provided.
11-
Otherwise it runs package's "stop" script, if one was provided, and then
12-
the "start" script.
10+
This restarts a package (or multiple packages).
11+
12+
This runs a package's "stop", "restart", and "start" scripts, and associated
13+
pre- and post- scripts, in the order given below:
14+
15+
1. prerestart
16+
2. prestop
17+
3. stop
18+
4. poststop
19+
5. restart
20+
6. prestart
21+
7. start
22+
8. poststart
23+
9. postrestart
1324

1425
If no version is specified, then it restarts the "active" version.
1526

16-
npm can run tests on multiple packages. Just specify multiple packages
17-
in the `packages` parameter.
27+
npm can restart multiple packages. Just specify multiple packages in
28+
the `packages` parameter.
29+
30+
## NOTE
31+
32+
Note that the "restart" script is run **in addition to** the "stop"
33+
and "start" scripts, not instead of them.
34+
35+
This is the behavior as of `npm` major version 2. A change in this
36+
behavior will be accompanied by an increase in major version number
1837

1938
## SEE ALSO
2039

deps/npm/doc/api/npm-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ npm-start(3) -- Start a package
99

1010
This runs a package's "start" script, if one was provided.
1111

12-
npm can run tests on multiple packages. Just specify multiple packages
13-
in the `packages` parameter.
12+
npm can start multiple packages. Just specify multiple packages in the
13+
`packages` parameter.

deps/npm/doc/api/npm-tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ is the package name and version is the version number (much like installing a
1818
specific version).
1919

2020
The second element is the name of the tag to tag this version with. If this
21-
parameter is missing or falsey (empty), the default froom the config will be
21+
parameter is missing or falsey (empty), the default from the config will be
2222
used. For more information about how to set this config, check
2323
`man 3 npm-config` for programmatic usage or `man npm-config` for cli usage.

deps/npm/doc/api/npm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
npm(3) -- node package manager
2-
==============================
1+
npm(3) -- javascript package manager
2+
====================================
33

44
## SYNOPSIS
55

0 commit comments

Comments
 (0)