Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsmikes <smikes@cubane.com>2015-01-06 04:10:51 +0300
committerForrest L Norvell <ogd@aoaioxxysz.net>2015-01-09 06:32:13 +0300
commit560c00945d4dec926cd29193e336f137c7f3f951 (patch)
tree83568eff3fcc405748fd00cd56f2fa0443d73d99 /doc
parentd7954c0091186a5a710d0db27120b28f3553c679 (diff)
npm update: document --dev flag (closes #6745)
Diffstat (limited to 'doc')
-rw-r--r--doc/cli/npm-update.md13
1 files changed, 3 insertions, 10 deletions
diff --git a/doc/cli/npm-update.md b/doc/cli/npm-update.md
index d17612199..2aa0f366b 100644
--- a/doc/cli/npm-update.md
+++ b/doc/cli/npm-update.md
@@ -10,7 +10,9 @@ npm-update(1) -- Update a package
This command will update all the packages listed to the latest version
(specified by the `tag` config).
-It will also install missing packages.
+It will also install missing packages. As with all commands that install
+packages, the `--dev` flag will cause `devDependencies` to be processed
+as well.
If the `-g` flag is specified, this command will update globally installed
packages.
@@ -18,15 +20,6 @@ packages.
If no package name is specified, all packages in the specified location (global
or local) will be updated.
-## WARNING
-
-By design, this command does **NOT** respect semantic versioning. Running
-`npm update` may break the current package by upgrading to incompatible newer
-versions of dependencies.
-
-Running `npm update -g` may break all globally installed packages, including
-npm itself.
-
## SEE ALSO
* npm-install(1)