CLI documentation update from CI

npm CLI robot committed Jan 10, 2024 at 20:45 UTC e47a50a1ee86fe5abdbb8a65457f9ce5a291b808
11 files changed +62 -10
content/cli/v10/commands/npm-install-test.mdx
+7
@@ -225,6 +225,13 @@ Override CPU architecture of native modules to install. Acceptable values are sa
225
226 Override OS of native modules to install. Acceptable values are same as `os` field of package.json, which comes from `process.platform`.
227
228 +#### `libc`
229 +
230 +- Default: null
231 +- Type: null or String
232 +
233 +Override libc of native modules to install. Acceptable values are same as `libc` field of package.json
234 +
235 #### `workspace`
236
237 - Default:
content/cli/v10/commands/npm-install.mdx
+7
@@ -508,6 +508,13 @@ Override CPU architecture of native modules to install. Acceptable values are sa
508
509 Override OS of native modules to install. Acceptable values are same as `os` field of package.json, which comes from `process.platform`.
510
511 +#### `libc`
512 +
513 +- Default: null
514 +- Type: null or String
515 +
516 +Override libc of native modules to install. Acceptable values are same as `libc` field of package.json
517 +
518 #### `workspace`
519
520 - Default:
content/cli/v10/commands/npm-ls.mdx
+1 -1
@@ -52,7 +52,7 @@ Note: to get a "bottoms up" view of why a given package is included in the tree
52 Positional arguments are `name@version-range` identifiers, which will limit the results to only the paths to the packages named. Note that nested packages will _also_ show the paths to the specified packages. For example, running `npm ls promzard` in npm's source tree will show:
53
54 ```bash
55 -npm@10.2.5 /path/to/npm
55 +npm@10.3.0 /path/to/npm
56 └─┬ init-package-json@0.0.4
57 └── promzard@0.1.5
58 ```
content/cli/v10/commands/npm-publish.mdx
+1 -1
@@ -47,7 +47,7 @@ Publishes a package to the registry so that it can be installed by name.
47
48 By default npm will publish to the public registry. This can be overridden by specifying a different default registry or using a [`scope`](/cli/v10/using-npm/scope) in the name, combined with a scope-configured registry (see [`package.json`](/cli/v10/configuring-npm/package-json)).
49
50 -A `package` is interpreted the same way as other commands (like `npm install` and can be:
50 +A `package` is interpreted the same way as other commands (like `npm install`) and can be:
51
52 - a) a folder containing a program described by a [`package.json`](/cli/v10/configuring-npm/package-json) file
53 - b) a gzipped tarball containing (a)
content/cli/v10/commands/npm.mdx
+1 -1
@@ -31,7 +31,7 @@ Note: This command is unaware of workspaces.
31
32 ### Version
33
34 -10.2.5
34 +10.3.0
35
36 ### Description
37
content/cli/v10/commands/npx.mdx
+1 -1
@@ -121,7 +121,7 @@ This resulted in some shifts in its functionality:
121 - The `-p` argument is a shorthand for `--parseable` in npm, but shorthand for `--package` in npx. This is maintained, but only for the `npx` executable.
122 - The `--ignore-existing` option is removed. Locally installed bins are always present in the executed process `PATH`.
123 - The `--npm` option is removed. `npx` will always use the `npm` it ships with.
124 -- The `--node-arg` and `-n` options are removed.
124 +- The `--node-arg` and `-n` options have been removed. Use [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#node_optionsoptions) instead: e.g., `NODE_OPTIONS="--trace-warnings --trace-exit" npx foo --random=true`
125 - The `--always-spawn` option is redundant, and thus removed.
126 - The `--shell` option is replaced with `--script-shell`, but maintained in the `npx` executable for backwards compatibility.
127
content/cli/v10/configuring-npm/npmrc.mdx
+4 -4
@@ -29,10 +29,10 @@ For a list of available configuration options, see [config](/cli/v10/using-npm/c
29
30 The four relevant files are:
31
32 -- per-project config file (/path/to/my/project/.npmrc)
33 -- per-user config file (~/.npmrc)
34 -- global config file ($PREFIX/etc/npmrc)
35 -- npm builtin config file (/path/to/npm/npmrc)
32 +- per-project config file (`/path/to/my/project/.npmrc`)
33 +- per-user config file (`~/.npmrc`)
34 +- global config file (`$PREFIX/etc/npmrc`)
35 +- npm builtin config file (`/path/to/npm/npmrc`)
36
37 All npm config files are an ini-formatted list of `key = value` parameters. Environment variables can be replaced using `${VARIABLE_NAME}`. For example:
38
content/cli/v10/configuring-npm/package-json.mdx
-1
@@ -263,7 +263,6 @@ Some files are always ignored by default:
263 - `.DS_Store`
264 - `._*`
265 - `.git`
266 -- `.npmrc`
266 - `.hg`
267 - `.lock-wscript`
268 - `.npmrc`
content/cli/v10/using-npm/changelog.mdx
+32
@@ -15,6 +15,38 @@ redirect_from:
15 - /using-npm/changelog
16 ---
17
18 +## [10.3.0](https://github.com/npm/cli/compare/v10.2.5...v10.3.0) (2024-01-10)
19 +
20 +### Features
21 +
22 +- [`6673c77`](https://github.com/npm/cli/commit/6673c77bc4222d0f1719449fe903b7461b3e6907) [#6914](https://github.com/npm/cli/pull/6914) add `--libc` option to override platform specific install (#6914) (@wraithgar, @Brooooooklyn)
23 +
24 +### Bug Fixes
25 +
26 +- [`b7fc10a`](https://github.com/npm/cli/commit/b7fc10aa37bc2422f479119558f82e01bdaab6cd) [#7113](https://github.com/npm/cli/pull/7113) filter C0 and C1 control characters from logs and cli output (#7113) (@wraithgar)
27 +
28 +### Dependencies
29 +
30 +- [`3fd5213`](https://github.com/npm/cli/commit/3fd521393461639b6b768df43f0b5b71d3ee7dd2) [#7121](https://github.com/npm/cli/pull/7121) `npm-packlist@8.0.2`
31 +- [`5698415`](https://github.com/npm/cli/commit/56984154b445c479236effdb844888b1ef409250) [#7121](https://github.com/npm/cli/pull/7121) `postcss-selector-parser@6.0.15`
32 +- [`e56a4f3`](https://github.com/npm/cli/commit/e56a4f3dff9de349917d530074e698c644471080) [#7121](https://github.com/npm/cli/pull/7121) `are-we-there-yet@4.0.2`
33 +- [`8495b7c`](https://github.com/npm/cli/commit/8495b7c088118e383ff6f3c7ce744df9c0d8e106) [#7121](https://github.com/npm/cli/pull/7121) `cacache@18.0.2`
34 +- [`796d1c7`](https://github.com/npm/cli/commit/796d1c7507d69382181e515d6c6987930c9ec636) [#7121](https://github.com/npm/cli/pull/7121) `@npmcli/run-script@7.0.3`
35 +- [`3b7f6f2`](https://github.com/npm/cli/commit/3b7f6f274aceed4218e5e903752d879a41d3a547) [#7121](https://github.com/npm/cli/pull/7121) `@npmcli/promise-spawn@7.0.1`
36 +- [`7ecd146`](https://github.com/npm/cli/commit/7ecd146a3241723602693ca67c78ca5e2da8cb57) [#7121](https://github.com/npm/cli/pull/7121) `npmcli/git@5.0.4`
37 +- [workspace](https://github.com/npm/cli/releases/tag/arborist-v7.3.0): `@npmcli/arborist@7.3.0`
38 +- [workspace](https://github.com/npm/cli/releases/tag/config-v8.1.0): `@npmcli/config@8.1.0`
39 +- [workspace](https://github.com/npm/cli/releases/tag/libnpmdiff-v6.0.5): `libnpmdiff@6.0.5`
40 +- [workspace](https://github.com/npm/cli/releases/tag/libnpmexec-v7.0.6): `libnpmexec@7.0.6`
41 +- [workspace](https://github.com/npm/cli/releases/tag/libnpmfund-v5.0.3): `libnpmfund@5.0.3`
42 +- [workspace](https://github.com/npm/cli/releases/tag/libnpmpack-v6.0.5): `libnpmpack@6.0.5`
43 +
44 +### Chores
45 +
46 +- [`2fd8292`](https://github.com/npm/cli/commit/2fd8292eff1155ec84a53f6d4321e6a386df93c7) [#7121](https://github.com/npm/cli/pull/7121) work around @npmcli/git lazy loading (@wraithgar)
47 +- [`cd9a66d`](https://github.com/npm/cli/commit/cd9a66df2476d602fe3d36a6c3c6185f1bd8c676) [#7121](https://github.com/npm/cli/pull/7121) update devDependencies in lockfile (@wraithgar)
48 +- [`2dda715`](https://github.com/npm/cli/commit/2dda715c9e72eefe69b49ee07c87fa126c84ff10) [#7121](https://github.com/npm/cli/pull/7121) `tap@16.3.10` (@wraithgar)
49 +
50 ## [10.2.5](https://github.com/npm/cli/compare/v10.2.4...v10.2.5) (2023-12-06)
51
52 ### Bug Fixes
content/cli/v10/using-npm/config.mdx
+7
@@ -625,6 +625,13 @@ This differs from `--omit=peer`, in that `--omit=peer` will avoid unpacking `pee
625
626 Use of `legacy-peer-deps` is not recommended, as it will not enforce the `peerDependencies` contract that meta-dependencies may rely on.
627
628 +#### `libc`
629 +
630 +- Default: null
631 +- Type: null or String
632 +
633 +Override libc of native modules to install. Acceptable values are same as `libc` field of package.json
634 +
635 #### `link`
636
637 - Default: false
content/nav.yml
+1 -1
@@ -1324,7 +1324,7 @@
1324 - title: Changelog
1325 url: /cli/v9/using-npm/changelog
1326 description: Changelog notes for each version
1327 - - title: Version 10.2.5
1327 + - title: Version 10.3.0
1328 shortName: v10
1329 url: /cli/v10
1330 default: true