diff options
author | npm team <ops+robot@npmjs.com> | 2022-01-21 01:08:53 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-01-24 17:26:39 +0300 |
commit | c0ef0d5a66e079349803fb8890f98745919d4803 (patch) | |
tree | 541aed5f4e61554092bd39937e12d69756e60092 /deps/npm/docs | |
parent | 400b7c242b2e1257979b8bd8cc4ed0f403366030 (diff) |
deps: upgrade npm to 8.3.2
PR-URL: https://github.com/nodejs/node/pull/41621
Reviewed-By: Ruy Adorno <ruyadorno@github.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Diffstat (limited to 'deps/npm/docs')
-rw-r--r-- | deps/npm/docs/content/commands/npm-dedupe.md | 6 | ||||
-rw-r--r-- | deps/npm/docs/content/commands/npm-update.md | 6 | ||||
-rw-r--r-- | deps/npm/docs/content/using-npm/config.md | 9 | ||||
-rw-r--r-- | deps/npm/docs/output/commands/npm-dedupe.html | 5 | ||||
-rw-r--r-- | deps/npm/docs/output/commands/npm-ls.html | 2 | ||||
-rw-r--r-- | deps/npm/docs/output/commands/npm-update.html | 5 | ||||
-rw-r--r-- | deps/npm/docs/output/commands/npm.html | 2 | ||||
-rw-r--r-- | deps/npm/docs/output/using-npm/config.html | 8 |
8 files changed, 35 insertions, 8 deletions
diff --git a/deps/npm/docs/content/commands/npm-dedupe.md b/deps/npm/docs/content/commands/npm-dedupe.md index 377e17d814a..53d2e64272a 100644 --- a/deps/npm/docs/content/commands/npm-dedupe.md +++ b/deps/npm/docs/content/commands/npm-dedupe.md @@ -72,6 +72,12 @@ result in new modules being installed. Using `npm find-dupes` will run the command in `--dry-run` mode. +Note that by default `npm dedupe` will not update the semver values of direct +dependencies in your project `package.json`, if you want to also update +values in `package.json` you can run: `npm dedupe --save` (or add the +`save=true` option to a [configuration file](/configuring-npm/npmrc) +to make that the default behavior). + ### Configuration <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> diff --git a/deps/npm/docs/content/commands/npm-update.md b/deps/npm/docs/content/commands/npm-update.md index ad02118e468..1889d60569f 100644 --- a/deps/npm/docs/content/commands/npm-update.md +++ b/deps/npm/docs/content/commands/npm-update.md @@ -27,6 +27,12 @@ packages. If no package name is specified, all packages in the specified location (global or local) will be updated. +Note that by default `npm update` will not update the semver values of direct +dependencies in your project `package.json`, if you want to also update +values in `package.json` you can run: `npm update --save` (or add the +`save=true` option to a [configuration file](/configuring-npm/npmrc) +to make that the default behavior). + ### Example For the examples below, assume that the current package is `app` and it depends diff --git a/deps/npm/docs/content/using-npm/config.md b/deps/npm/docs/content/using-npm/config.md index fe197e344db..83a385e0834 100644 --- a/deps/npm/docs/content/using-npm/config.md +++ b/deps/npm/docs/content/using-npm/config.md @@ -1326,13 +1326,16 @@ The base URL of the npm registry. #### `save` -* Default: true +* Default: `true` unless when using `npm update` or `npm dedupe` where it + defaults to `false` * Type: Boolean -Save installed packages to a package.json file as dependencies. +Save installed packages to a `package.json` file as dependencies. When used with the `npm rm` command, removes the dependency from -package.json. +`package.json`. + +Will also prevent writing to `package-lock.json` if set to `false`. <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/definitions.js --> diff --git a/deps/npm/docs/output/commands/npm-dedupe.html b/deps/npm/docs/output/commands/npm-dedupe.html index ea811c28e94..a31af824b20 100644 --- a/deps/npm/docs/output/commands/npm-dedupe.html +++ b/deps/npm/docs/output/commands/npm-dedupe.html @@ -192,6 +192,11 @@ sufficient.</p> <p>Note that this operation transforms the dependency tree, but will never result in new modules being installed.</p> <p>Using <code>npm find-dupes</code> will run the command in <code>--dry-run</code> mode.</p> +<p>Note that by default <code>npm dedupe</code> will not update the semver values of direct +dependencies in your project <code>package.json</code>, if you want to also update +values in <code>package.json</code> you can run: <code>npm dedupe --save</code> (or add the +<code>save=true</code> option to a <a href="../configuring-npm/npmrc.html">configuration file</a> +to make that the default behavior).</p> <h3 id="configuration">Configuration</h3> <!-- raw HTML omitted --> <!-- raw HTML omitted --> diff --git a/deps/npm/docs/output/commands/npm-ls.html b/deps/npm/docs/output/commands/npm-ls.html index 3ad752bcac4..341a3fee9da 100644 --- a/deps/npm/docs/output/commands/npm-ls.html +++ b/deps/npm/docs/output/commands/npm-ls.html @@ -160,7 +160,7 @@ tree at all, use <a href="../commands/npm-explain.html"><code>npm explain</code> the results to only the paths to the packages named. Note that nested packages will <em>also</em> show the paths to the specified packages. For example, running <code>npm ls promzard</code> in npm's source tree will show:</p> -<pre lang="bash"><code>npm@8.3.1 /path/to/npm +<pre lang="bash"><code>npm@8.3.2 /path/to/npm └─┬ init-package-json@0.0.4 └── promzard@0.1.5 </code></pre> diff --git a/deps/npm/docs/output/commands/npm-update.html b/deps/npm/docs/output/commands/npm-update.html index 065feee3eb3..6185df91e8d 100644 --- a/deps/npm/docs/output/commands/npm-update.html +++ b/deps/npm/docs/output/commands/npm-update.html @@ -160,6 +160,11 @@ package).</p> packages.</p> <p>If no package name is specified, all packages in the specified location (global or local) will be updated.</p> +<p>Note that by default <code>npm update</code> will not update the semver values of direct +dependencies in your project <code>package.json</code>, if you want to also update +values in <code>package.json</code> you can run: <code>npm update --save</code> (or add the +<code>save=true</code> option to a <a href="../configuring-npm/npmrc.html">configuration file</a> +to make that the default behavior).</p> <h3 id="example">Example</h3> <p>For the examples below, assume that the current package is <code>app</code> and it depends on dependencies, <code>dep1</code> (<code>dep2</code>, .. etc.). The published versions of <code>dep1</code> diff --git a/deps/npm/docs/output/commands/npm.html b/deps/npm/docs/output/commands/npm.html index 044d90faec6..ab49c472ab6 100644 --- a/deps/npm/docs/output/commands/npm.html +++ b/deps/npm/docs/output/commands/npm.html @@ -149,7 +149,7 @@ npm command-line interface <pre lang="bash"><code>npm <command> [args] </code></pre> <h3 id="version">Version</h3> -<p>8.3.1</p> +<p>8.3.2</p> <h3 id="description">Description</h3> <p>npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency diff --git a/deps/npm/docs/output/using-npm/config.html b/deps/npm/docs/output/using-npm/config.html index f3db847b48a..b96eecd3902 100644 --- a/deps/npm/docs/output/using-npm/config.html +++ b/deps/npm/docs/output/using-npm/config.html @@ -1210,12 +1210,14 @@ access tokens with the <code>npm token create</code> command.</p> <!-- raw HTML omitted --> <h4 id="save"><code>save</code></h4> <ul> -<li>Default: true</li> +<li>Default: <code>true</code> unless when using <code>npm update</code> or <code>npm dedupe</code> where it +defaults to <code>false</code></li> <li>Type: Boolean</li> </ul> -<p>Save installed packages to a package.json file as dependencies.</p> +<p>Save installed packages to a <code>package.json</code> file as dependencies.</p> <p>When used with the <code>npm rm</code> command, removes the dependency from -package.json.</p> +<code>package.json</code>.</p> +<p>Will also prevent writing to <code>package-lock.json</code> if set to <code>false</code>.</p> <!-- raw HTML omitted --> <!-- raw HTML omitted --> <h4 id="save-bundle"><code>save-bundle</code></h4> |