From c0ef0d5a66e079349803fb8890f98745919d4803 Mon Sep 17 00:00:00 2001
From: npm team
Note that this operation transforms the dependency tree, but will never 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
+to make that the default behavior).
npm explain
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:
-npm@8.3.1 /path/to/npm
+npm@8.3.2 /path/to/npm
└─┬ init-package-json@0.0.4
└── promzard@0.1.5
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).
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
+to make that the default behavior).
Example
For the examples below, assume that the current package is app
and it depends
on dependencies, dep1
(dep2
, .. etc.). The published versions of dep1
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
npm <command> [args]
Version
-8.3.1
+8.3.2
Description
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 npm token create
command.
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
.
save-bundle
--
cgit v1.2.3