Skip to content

Commit 811f04b

Browse files
npm-robotbengl
authored andcommitted
deps: upgrade npm to 8.5.1
PR-URL: #42039 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 010dd4c commit 811f04b

File tree

25 files changed

+137
-68
lines changed

25 files changed

+137
-68
lines changed

deps/npm/docs/content/commands/npm-install.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,20 @@ into a tarball (b).
7878

7979
* `npm install <folder>`:
8080

81-
Install the package in the directory as a symlink in the current
82-
project. Its dependencies will be installed before it's linked. If
83-
`<folder>` sits inside the root of your project, its dependencies may
81+
If `<folder>` sits inside the root of your project, its dependencies will be installed and may
8482
be hoisted to the top-level `node_modules` as they would for other
85-
types of dependencies.
83+
types of dependencies. If `<folder>` sits outside the root of your project,
84+
*npm will not install the package dependencies* in the directory `<folder>`,
85+
but it will create a symlink to `<folder>`.
86+
87+
> NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use [`npm pack`](/commands/npm-pack) while in the `<folder>` directory, and then install the resulting tarball instead of the `<folder>` using `npm install <tarball file>`
88+
89+
Example:
90+
91+
```bash
92+
npm install ../../other-package
93+
npm install ./sub-package
94+
```
8695

8796
* `npm install <tarball file>`:
8897

deps/npm/docs/content/commands/npm-ping.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ Ping the configured or given npm registry and verify authentication.
1818
If it works it will output something like:
1919

2020
```bash
21-
Ping success: {*Details about registry*}
21+
npm notice PING https://registry.npmjs.org/
22+
npm notice PONG 255ms
2223
```
23-
otherwise you will get:
24+
otherwise you will get an error:
2425
```bash
25-
Ping error: {*Detail about error}
26+
npm notice PING http://foo.com/
27+
npm ERR! code E404
28+
npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
2629
```
2730

2831
### Configuration

deps/npm/docs/content/using-npm/workspaces.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,25 @@ Workspaces are usually defined via the `workspaces` property of the
3030
{
3131
"name": "my-workspaces-powered-project",
3232
"workspaces": [
33-
"workspace-a"
33+
"packages/a"
3434
]
3535
}
3636
```
3737

3838
Given the above `package.json` example living at a current working
39-
directory `.` that contains a folder named `workspace-a` that itself contains
39+
directory `.` that contains a folder named `packages/a` that itself contains
4040
a `package.json` inside it, defining a Node.js package, e.g:
4141

4242
```
4343
.
4444
+-- package.json
45-
`-- workspace-a
46-
`-- package.json
45+
`-- packages
46+
+-- a
47+
| `-- package.json
4748
```
4849

4950
The expected result once running `npm install` in this current working
50-
directory `.` is that the folder `workspace-a` will get symlinked to the
51+
directory `.` is that the folder `packages/a` will get symlinked to the
5152
`node_modules` folder of the current working dir.
5253

5354
Below is a post `npm install` example, given that same previous example
@@ -56,11 +57,12 @@ structure of files and folders:
5657
```
5758
.
5859
+-- node_modules
59-
| `-- workspace-a -> ../workspace-a
60+
| `-- packages/a -> ../packages/a
6061
+-- package-lock.json
6162
+-- package.json
62-
`-- workspace-a
63-
`-- package.json
63+
`-- packages
64+
+-- a
65+
| `-- package.json
6466
```
6567

6668
### Getting started with workspaces

deps/npm/docs/output/commands/npm-install.html

+11-4
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,18 @@ <h3 id="description">Description</h3>
211211
</li>
212212
<li>
213213
<p><code>npm install &lt;folder&gt;</code>:</p>
214-
<p>Install the package in the directory as a symlink in the current
215-
project. Its dependencies will be installed before it's linked. If
216-
<code>&lt;folder&gt;</code> sits inside the root of your project, its dependencies may
214+
<p>If <code>&lt;folder&gt;</code> sits inside the root of your project, its dependencies will be installed and may
217215
be hoisted to the top-level <code>node_modules</code> as they would for other
218-
types of dependencies.</p>
216+
types of dependencies. If <code>&lt;folder&gt;</code> sits outside the root of your project,
217+
<em>npm will not install the package dependencies</em> in the directory <code>&lt;folder&gt;</code>,
218+
but it will create a symlink to <code>&lt;folder&gt;</code>.</p>
219+
<blockquote>
220+
<p>NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use <a href="../commands/npm-pack.html"><code>npm pack</code></a> while in the <code>&lt;folder&gt;</code> directory, and then install the resulting tarball instead of the <code>&lt;folder&gt;</code> using <code>npm install &lt;tarball file&gt;</code></p>
221+
</blockquote>
222+
<p>Example:</p>
223+
<pre lang="bash"><code>npm install ../../other-package
224+
npm install ./sub-package
225+
</code></pre>
219226
</li>
220227
<li>
221228
<p><code>npm install &lt;tarball file&gt;</code>:</p>

deps/npm/docs/output/commands/npm-ls.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ <h3 id="description">Description</h3>
160160
the results to only the paths to the packages named. Note that nested
161161
packages will <em>also</em> show the paths to the specified packages. For
162162
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
163-
<pre lang="bash"><code>[email protected].0 /path/to/npm
163+
<pre lang="bash"><code>[email protected].1 /path/to/npm
164164
165165
166166
</code></pre>

deps/npm/docs/output/commands/npm-ping.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,13 @@ <h2 id="table-of-contents">Table of contents</h2>
152152
<h3 id="description">Description</h3>
153153
<p>Ping the configured or given npm registry and verify authentication.
154154
If it works it will output something like:</p>
155-
<pre lang="bash"><code>Ping success: {*Details about registry*}
155+
<pre lang="bash"><code>npm notice PING https://registry.npmjs.org/
156+
npm notice PONG 255ms
156157
</code></pre>
157-
<p>otherwise you will get:</p>
158-
<pre lang="bash"><code>Ping error: {*Detail about error}
158+
<p>otherwise you will get an error:</p>
159+
<pre lang="bash"><code>npm notice PING http://foo.com/
160+
npm ERR! code E404
161+
npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
159162
</code></pre>
160163
<h3 id="configuration">Configuration</h3>
161164
<!-- raw HTML omitted -->

deps/npm/docs/output/commands/npm.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ <h2 id="table-of-contents">Table of contents</h2>
149149
<pre lang="bash"><code>npm &lt;command&gt; [args]
150150
</code></pre>
151151
<h3 id="version">Version</h3>
152-
<p>8.5.0</p>
152+
<p>8.5.1</p>
153153
<h3 id="description">Description</h3>
154154
<p>npm is the package manager for the Node JavaScript platform. It puts
155155
modules in place so that node can find them, and manages dependency

deps/npm/docs/output/using-npm/workspaces.html

+10-8
Original file line numberDiff line numberDiff line change
@@ -164,30 +164,32 @@ <h3 id="defining-workspaces">Defining workspaces</h3>
164164
<pre lang="json"><code>{
165165
"name": "my-workspaces-powered-project",
166166
"workspaces": [
167-
"workspace-a"
167+
"packages/a"
168168
]
169169
}
170170
</code></pre>
171171
<p>Given the above <code>package.json</code> example living at a current working
172-
directory <code>.</code> that contains a folder named <code>workspace-a</code> that itself contains
172+
directory <code>.</code> that contains a folder named <code>packages/a</code> that itself contains
173173
a <code>package.json</code> inside it, defining a Node.js package, e.g:</p>
174174
<pre><code>.
175175
+-- package.json
176-
`-- workspace-a
177-
`-- package.json
176+
`-- packages
177+
+-- a
178+
| `-- package.json
178179
</code></pre>
179180
<p>The expected result once running <code>npm install</code> in this current working
180-
directory <code>.</code> is that the folder <code>workspace-a</code> will get symlinked to the
181+
directory <code>.</code> is that the folder <code>packages/a</code> will get symlinked to the
181182
<code>node_modules</code> folder of the current working dir.</p>
182183
<p>Below is a post <code>npm install</code> example, given that same previous example
183184
structure of files and folders:</p>
184185
<pre><code>.
185186
+-- node_modules
186-
| `-- workspace-a -&gt; ../workspace-a
187+
| `-- packages/a -&gt; ../packages/a
187188
+-- package-lock.json
188189
+-- package.json
189-
`-- workspace-a
190-
`-- package.json
190+
`-- packages
191+
+-- a
192+
| `-- package.json
191193
</code></pre>
192194
<h3 id="getting-started-with-workspaces">Getting started with workspaces</h3>
193195
<p>You may automate the required steps to define a new workspace using

deps/npm/lib/commands/pkg.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class Pkg extends BaseCommand {
99
'set <key>=<value> [<key>=<value> ...]',
1010
'get [<key> [<key> ...]]',
1111
'delete <key> [<key> ...]',
12+
'set [<array>[<index>].<key>=<value> ...]',
13+
'set [<array>[].<key>=<value> ...]',
1214
]
1315

1416
static params = [

deps/npm/man/man1/npm-install.1

+16-4
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,23 @@ NOTE: The \fB\-\-production\fP flag has no particular meaning when adding a
8787
.
8888
.IP \(bu 2
8989
\fBnpm install <folder>\fP:
90-
Install the package in the directory as a symlink in the current
91-
project\. Its dependencies will be installed before it's linked\. If
92-
\fB<folder>\fP sits inside the root of your project, its dependencies may
90+
If \fB<folder>\fP sits inside the root of your project, its dependencies will be installed and may
9391
be hoisted to the top\-level \fBnode_modules\fP as they would for other
94-
types of dependencies\.
92+
types of dependencies\. If \fB<folder>\fP sits outside the root of your project,
93+
\fInpm will not install the package dependencies\fR in the directory \fB<folder>\fP,
94+
but it will create a symlink to \fB<folder>\fP\|\.
95+
.QP
96+
NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use npm help \fBpack\fP while in the \fB<folder>\fP directory, and then install the resulting tarball instead of the \fB<folder>\fP using \fBnpm install <tarball file>\fP
97+
98+
.
99+
Example:
100+
.P
101+
.RS 2
102+
.nf
103+
npm install \.\./\.\./other\-package
104+
npm install \./sub\-package
105+
.fi
106+
.RE
95107
.IP \(bu 2
96108
\fBnpm install <tarball file>\fP:
97109
Install a package that is sitting on the filesystem\. Note: if you just

deps/npm/man/man1/npm-ls.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ example, running \fBnpm ls promzard\fP in npm's source tree will show:
2626
.P
2727
.RS 2
2828
.nf
29-
npm@8\.5\.0 /path/to/npm
29+
npm@8\.5\.1 /path/to/npm
3030
└─┬ init\-package\-json@0\.0\.4
3131
└── promzard@0\.1\.5
3232
.fi

deps/npm/man/man1/npm-ping.1

+6-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@ If it works it will output something like:
1717
.P
1818
.RS 2
1919
.nf
20-
Ping success: {*Details about registry*}
20+
npm notice PING https://registry\.npmjs\.org/
21+
npm notice PONG 255ms
2122
.fi
2223
.RE
2324
.P
24-
otherwise you will get:
25+
otherwise you will get an error:
2526
.P
2627
.RS 2
2728
.nf
28-
Ping error: {*Detail about error}
29+
npm notice PING http://foo\.com/
30+
npm ERR! code E404
31+
npm ERR! 404 Not Found \- GET http://www\.foo\.com/\-/ping?write=true
2932
.fi
3033
.RE
3134
.SS Configuration

deps/npm/man/man1/npm.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ npm <command> [args]
1010
.RE
1111
.SS Version
1212
.P
13-
8\.5\.0
13+
8\.5\.1
1414
.SS Description
1515
.P
1616
npm is the package manager for the Node JavaScript platform\. It puts

deps/npm/man/man7/workspaces.7

+10-8
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,28 @@ npm help \fBpackage\.json\fP file, e\.g:
2727
{
2828
"name": "my\-workspaces\-powered\-project",
2929
"workspaces": [
30-
"workspace\-a"
30+
"packages/a"
3131
]
3232
}
3333
.fi
3434
.RE
3535
.P
3636
Given the above \fBpackage\.json\fP example living at a current working
37-
directory \fB\|\.\fP that contains a folder named \fBworkspace\-a\fP that itself contains
37+
directory \fB\|\.\fP that contains a folder named \fBpackages/a\fP that itself contains
3838
a \fBpackage\.json\fP inside it, defining a Node\.js package, e\.g:
3939
.P
4040
.RS 2
4141
.nf
4242
\|\.
4343
+\-\- package\.json
44-
`\-\- workspace\-a
45-
`\-\- package\.json
44+
`\-\- packages
45+
+\-\- a
46+
| `\-\- package\.json
4647
.fi
4748
.RE
4849
.P
4950
The expected result once running \fBnpm install\fP in this current working
50-
directory \fB\|\.\fP is that the folder \fBworkspace\-a\fP will get symlinked to the
51+
directory \fB\|\.\fP is that the folder \fBpackages/a\fP will get symlinked to the
5152
\fBnode_modules\fP folder of the current working dir\.
5253
.P
5354
Below is a post \fBnpm install\fP example, given that same previous example
@@ -57,11 +58,12 @@ structure of files and folders:
5758
.nf
5859
\|\.
5960
+\-\- node_modules
60-
| `\-\- workspace\-a \-> \.\./workspace\-a
61+
| `\-\- packages/a \-> \.\./packages/a
6162
+\-\- package\-lock\.json
6263
+\-\- package\.json
63-
`\-\- workspace\-a
64-
`\-\- package\.json
64+
`\-\- packages
65+
+\-\- a
66+
| `\-\- package\.json
6567
.fi
6668
.RE
6769
.SS Getting started with workspaces

deps/npm/node_modules/@npmcli/arborist/lib/audit-report.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/npm/node_modules/@npmcli/ci-detect/index.js deps/npm/node_modules/@npmcli/ci-detect/lib/index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/npm/node_modules/@npmcli/ci-detect/package.json

+20-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/npm/node_modules/gauge/lib/themes.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)