Skip to content

Commit c8bbd13

Browse files
committed
Upgrade npm to 1.1.17
1 parent d8b33dc commit c8bbd13

File tree

225 files changed

+952
-648
lines changed

Some content is hidden

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

225 files changed

+952
-648
lines changed

deps/npm/AUTHORS

+3
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ Andrew Lunny <[email protected]>
6161
Henrik Hodne <[email protected]>
6262
Adam Blackburn <[email protected]>
6363
Kris Windham <[email protected]>
64+
Jens Grunert <[email protected]>
65+
Joost-Wim Boekesteijn <[email protected]>
66+
Dalmais Maxence <[email protected]>

deps/npm/doc/cli/config.md

+27
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ The following shorthands are parsed on the command-line:
115115
* `-l`: `--long`
116116
* `-desc`: `--description`
117117
* `-S`: `--save`
118+
* `-D`: `--save-dev`
119+
* `-O`: `--save-optional`
118120
* `-y`: `--yes`
119121
* `-n`: `--yes false`
120122
* `ll` and `la` commands: `ls --long`
@@ -358,6 +360,13 @@ user.
358360

359361
A proxy to use for outgoing https requests.
360362

363+
### user-agent
364+
365+
* Default: npm/{npm.version} node/{process.version}
366+
* Type: String
367+
368+
Sets a User-Agent to the request header
369+
361370
### ignore
362371

363372
* Default: ""
@@ -577,6 +586,24 @@ Save installed packages to a package.json file as dependencies.
577586

578587
Only works if there is already a package.json file present.
579588

589+
### save-dev
590+
591+
* Default: false
592+
* Type: Boolean
593+
594+
Save installed packages to a package.json file as devDependencies.
595+
596+
Only works if there is already a package.json file present.
597+
598+
### save-optional
599+
600+
* Default: false
601+
* Type: Boolean
602+
603+
Save installed packages to a package.json file as optionalDependencies.
604+
605+
Only works if there is already a package.json file present.
606+
580607
### searchopts
581608

582609
* Default: ""

deps/npm/doc/cli/install.md

+77-48
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ npm-install(1) -- Install a package
77
npm install <tarball file>
88
npm install <tarball url>
99
npm install <folder>
10-
npm install <name>
10+
npm install <name> [--save|--save-dev|--save-optional]
1111
npm install <name>@<tag>
1212
npm install <name>@<version>
1313
npm install <name>@<version range>
14+
npm install <name>@<version range>
1415

1516
## DESCRIPTION
1617

@@ -35,88 +36,116 @@ after packing it up into a tarball (b).
3536

3637

3738
* `npm install` (in package directory, no arguments):
38-
Install the dependencies in the local node_modules folder.
3939

40-
In global mode (ie, with `-g` or `--global` appended to the command),
41-
it installs the current package context (ie, the current working
42-
directory) as a global package.
40+
Install the dependencies in the local node_modules folder.
41+
42+
In global mode (ie, with `-g` or `--global` appended to the command),
43+
it installs the current package context (ie, the current working
44+
directory) as a global package.
45+
4346

4447
* `npm install <folder>`:
45-
Install a package that is sitting in a folder on the filesystem.
48+
49+
Install a package that is sitting in a folder on the filesystem.
4650

4751
* `npm install <tarball file>`:
48-
Install a package that is sitting on the filesystem. Note: if you just want
49-
to link a dev directory into your npm root, you can do this more easily by
50-
using `npm link`.
5152

52-
Example:
53+
Install a package that is sitting on the filesystem. Note: if you just want
54+
to link a dev directory into your npm root, you can do this more easily by
55+
using `npm link`.
56+
57+
Example:
5358

54-
npm install ./package.tgz
59+
npm install ./package.tgz
5560

5661
* `npm install <tarball url>`:
57-
Fetch the tarball url, and then install it. In order to distinguish between
58-
this and other options, the argument must start with "http://" or "https://"
5962

60-
Example:
63+
Fetch the tarball url, and then install it. In order to distinguish between
64+
this and other options, the argument must start with "http://" or "https://"
65+
66+
Example:
67+
68+
npm install https://github.com/indexzero/forever/tarball/v0.5.6
69+
70+
* `npm install <name> [--save|--save-dev|--save-optional]`:
71+
72+
Do a `<name>@<tag>` install, where `<tag>` is the "tag" config. (See
73+
`npm-config(1)`.)
6174

62-
npm install https://github.com/indexzero/forever/tarball/v0.5.6
75+
In most cases, this will install the latest version
76+
of the module published on npm.
6377

64-
* `npm install <name>`:
65-
Do a `<name>@<tag>` install, where `<tag>` is the "tag" config. (See
66-
`npm-config(1)`)
78+
Example:
6779

68-
Example:
80+
npm install sax
6981

70-
npm install sax
82+
`npm install` takes 3 exclusive, optional flags which save or update
83+
the package version in your main package.json:
7184

72-
**Note**: If there is a file or folder named `<name>` in the current
73-
working directory, then it will try to install that, and only try to
74-
fetch the package by name if it is not valid.
85+
* `--save`: Package will appear in your `dependencies`.
86+
87+
* `--save-dev`: Package will appear in your `devDependencies`.
88+
89+
* `--save-optional`: Package will appear in your `optionalDependencies`.
90+
91+
Examples:
92+
93+
npm install sax --save
94+
npm install node-tap --save-dev
95+
npm install dtrace-provider --save-optional
96+
97+
98+
**Note**: If there is a file or folder named `<name>` in the current
99+
working directory, then it will try to install that, and only try to
100+
fetch the package by name if it is not valid.
75101

76102
* `npm install <name>@<tag>`:
77-
Install the version of the package that is referenced by the specified tag.
78-
If the tag does not exist in the registry data for that package, then this
79-
will fail.
80103

81-
Example:
104+
Install the version of the package that is referenced by the specified tag.
105+
If the tag does not exist in the registry data for that package, then this
106+
will fail.
107+
108+
Example:
82109

83-
npm install sax@latest
110+
npm install sax@latest
84111

85112
* `npm install <name>@<version>`:
86-
Install the specified version of the package. This will fail if the version
87-
has not been published to the registry.
88113

89-
Example:
114+
Install the specified version of the package. This will fail if the version
115+
has not been published to the registry.
90116

91-
npm install [email protected]
117+
Example:
118+
119+
npm install [email protected]
92120

93121
* `npm install <name>@<version range>`:
94-
Install a version of the package matching the specified version range. This
95-
will follow the same rules for resolving dependencies described in `npm-json(1)`.
96122

97-
Note that most version ranges must be put in quotes so that your shell will
98-
treat it as a single argument.
123+
Install a version of the package matching the specified version range. This
124+
will follow the same rules for resolving dependencies described in `npm-json(1)`.
125+
126+
Note that most version ranges must be put in quotes so that your shell will
127+
treat it as a single argument.
99128

100-
Example:
129+
Example:
101130

102-
npm install sax@">=0.1.0 <0.2.0"
131+
npm install sax@">=0.1.0 <0.2.0"
103132

104133
* `npm install <git remote url>`:
105134

106-
Install a package by cloning a git remote url. The format of the git
107-
url is:
135+
Install a package by cloning a git remote url. The format of the git
136+
url is:
108137

109-
<protocol>://[<user>@]<hostname><separator><path>[#<commit-ish>]
138+
<protocol>://[<user>@]<hostname><separator><path>[#<commit-ish>]
110139

111-
`<protocol>` is one of `git`, `git+ssh`, `git+http`, or
112-
`git+https`. If no `<commit-ish>` is specified, then `master` is
113-
used.
140+
`<protocol>` is one of `git`, `git+ssh`, `git+http`, or
141+
`git+https`. If no `<commit-ish>` is specified, then `master` is
142+
used.
114143

115-
Examples:
144+
Examples:
116145

117-
git+ssh://[email protected]:isaacs/npm.git#v1.0.27
118-
git+https://[email protected]/isaacs/npm.git
119-
git://github.com/isaacs/npm.git#v1.0.27
146+
git+ssh://[email protected]:isaacs/npm.git#v1.0.27
147+
git+https://[email protected]/isaacs/npm.git
148+
git://github.com/isaacs/npm.git#v1.0.27
120149

121150
You may combine multiple arguments, and even multiple types of arguments.
122151
For example:

deps/npm/doc/cli/json.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ to publish it.
485485

486486
This is a way to prevent accidental publication of private repositories.
487487
If you would like to ensure that a given package is only ever published
488-
to a speciic registry (for example, an internal registry),
488+
to a specific registry (for example, an internal registry),
489489
then use the `publishConfig` hash described below
490490
to override the `registry` config param at publish-time.
491491

deps/npm/html/api/bin.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
1919
<p>This function should not be used programmatically. Instead, just refer
2020
to the <code>npm.bin</code> member.</p>
2121
</div>
22-
<p id="footer">bin &mdash; [email protected].15</p>
22+
<p id="footer">bin &mdash; [email protected].18</p>
2323
<script>
2424
;(function () {
2525
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/bugs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2525
<p>This command will launch a browser, so this command may not be the most
2626
friendly for programmatic use.</p>
2727
</div>
28-
<p id="footer">bugs &mdash; [email protected].15</p>
28+
<p id="footer">bugs &mdash; [email protected].18</p>
2929
<script>
3030
;(function () {
3131
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/commands.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
2828

2929
<ul><li><a href="../doc/index.html">index(1)</a></li></ul>
3030
</div>
31-
<p id="footer">commands &mdash; [email protected].15</p>
31+
<p id="footer">commands &mdash; [email protected].18</p>
3232
<script>
3333
;(function () {
3434
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/config.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
3333

3434
<ul><li><a href="../api/npm.html">npm(3)</a></li></ul>
3535
</div>
36-
<p id="footer">config &mdash; [email protected].15</p>
36+
<p id="footer">config &mdash; [email protected].18</p>
3737
<script>
3838
;(function () {
3939
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/deprecate.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
3030

3131
<ul><li><a href="../api/publish.html">publish(3)</a></li><li><a href="../api/unpublish.html">unpublish(3)</a></li><li><a href="../doc/registry.html">registry(1)</a></li></ul>
3232
</div>
33-
<p id="footer">deprecate &mdash; [email protected].15</p>
33+
<p id="footer">deprecate &mdash; [email protected].18</p>
3434
<script>
3535
;(function () {
3636
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/docs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2525
<p>This command will launch a browser, so this command may not be the most
2626
friendly for programmatic use.</p>
2727
</div>
28-
<p id="footer">docs &mdash; [email protected].15</p>
28+
<p id="footer">docs &mdash; [email protected].18</p>
2929
<script>
3030
;(function () {
3131
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/edit.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3030
<p>Since this command opens an editor in a new process, be careful about where
3131
and how this is used.</p>
3232
</div>
33-
<p id="footer">edit &mdash; [email protected].15</p>
33+
<p id="footer">edit &mdash; [email protected].18</p>
3434
<script>
3535
;(function () {
3636
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/explore.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2424

2525
<p>The first element in the 'args' parameter must be a package name. After that is the optional command, which can be any number of strings. All of the strings will be combined into one, space-delimited command.</p>
2626
</div>
27-
<p id="footer">explore &mdash; [email protected].15</p>
27+
<p id="footer">explore &mdash; [email protected].18</p>
2828
<script>
2929
;(function () {
3030
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/help-search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3232

3333
<p>The silent parameter is not neccessary not used, but it may in the future.</p>
3434
</div>
35-
<p id="footer">help-search &mdash; [email protected].15</p>
35+
<p id="footer">help-search &mdash; [email protected].18</p>
3636
<script>
3737
;(function () {
3838
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/init.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2 id="SEE-ALSO">SEE ALSO</h2>
3535

3636
<p><a href="../doc/json.html">json(1)</a></p>
3737
</div>
38-
<p id="footer">init &mdash; [email protected].15</p>
38+
<p id="footer">init &mdash; [email protected].18</p>
3939
<script>
4040
;(function () {
4141
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/install.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
2525
<p>Finally, 'callback' is a function that will be called when all packages have been
2626
installed or when an error has been encountered.</p>
2727
</div>
28-
<p id="footer">install &mdash; [email protected].15</p>
28+
<p id="footer">install &mdash; [email protected].18</p>
2929
<script>
3030
;(function () {
3131
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/link.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3939
<p>Now, any changes to the redis package will be reflected in
4040
the package in the current working directory</p>
4141
</div>
42-
<p id="footer">link &mdash; [email protected].15</p>
42+
<p id="footer">link &mdash; [email protected].18</p>
4343
<script>
4444
;(function () {
4545
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/load.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
3232

3333
<p>For a list of all the available command-line configs, see <code>npm help config</code></p>
3434
</div>
35-
<p id="footer">load &mdash; [email protected].15</p>
35+
<p id="footer">load &mdash; [email protected].18</p>
3636
<script>
3737
;(function () {
3838
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/ls.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h3 id="global">global</h3>
5959
This means that if a submodule a same dependency as a parent module, then the
6060
dependency will only be output once.</p>
6161
</div>
62-
<p id="footer">ls &mdash; [email protected].15</p>
62+
<p id="footer">ls &mdash; [email protected].18</p>
6363
<script>
6464
;(function () {
6565
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/npm.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2 id="SYNOPSIS">SYNOPSIS</h2>
2424

2525
<h2 id="VERSION">VERSION</h2>
2626

27-
<p>1.1.15</p>
27+
<p>1.1.18</p>
2828

2929
<h2 id="DESCRIPTION">DESCRIPTION</h2>
3030

@@ -91,7 +91,7 @@ <h2 id="ABBREVS">ABBREVS</h2>
9191

9292
<pre><code>var cmd = npm.deref("unp") // cmd === "unpublish"</code></pre>
9393
</div>
94-
<p id="footer">npm &mdash; [email protected].15</p>
94+
<p id="footer">npm &mdash; [email protected].18</p>
9595
<script>
9696
;(function () {
9797
var wrapper = document.getElementById("wrapper")

deps/npm/html/api/outdated.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 id="DESCRIPTION">DESCRIPTION</h2>
1919

2020
<p>If the 'packages' parameter is left out, npm will check all packages.</p>
2121
</div>
22-
<p id="footer">outdated &mdash; [email protected].15</p>
22+
<p id="footer">outdated &mdash; [email protected].18</p>
2323
<script>
2424
;(function () {
2525
var wrapper = document.getElementById("wrapper")

0 commit comments

Comments
 (0)