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:
authorForrest L Norvell <forrest@npmjs.com>2015-02-27 01:11:38 +0300
committerForrest L Norvell <forrest@npmjs.com>2015-02-27 01:12:51 +0300
commit8fd29825b76296dac81742c849e4947a1a08e417 (patch)
tree59625fdfb80ac81fd3bf274e9f650668729a5a65 /doc
parent5bc70e6cfb3598da433806c6f447fc94c8e1d35d (diff)
doc: small note about suprising update behavior
Also tweaked update API documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/api/npm-update.md11
-rw-r--r--doc/cli/npm-update.md9
2 files changed, 14 insertions, 6 deletions
diff --git a/doc/api/npm-update.md b/doc/api/npm-update.md
index bf02fd3c8..52d7ec343 100644
--- a/doc/api/npm-update.md
+++ b/doc/api/npm-update.md
@@ -2,10 +2,17 @@ npm-update(3) -- Update a package
=================================
## SYNOPSIS
+
npm.commands.update(packages, callback)
# DESCRIPTION
-Updates a package, upgrading it to the latest version. It also installs any missing packages.
+Updates a package, upgrading it to the latest version. It also installs any
+missing packages.
+
+The `packages` argument is an array of packages to update. The `callback`
+parameter will be called when done or when an error occurs.
+
+## SEE ALSO
-The 'packages' argument is an array of packages to update. The 'callback' parameter will be called when done or when an error occurs.
+* npm-update(1)
diff --git a/doc/cli/npm-update.md b/doc/cli/npm-update.md
index dcc3b3cbb..ce31c2891 100644
--- a/doc/cli/npm-update.md
+++ b/doc/cli/npm-update.md
@@ -136,11 +136,12 @@ if it installs a new package.
### Updating Globally-Installed Packages
-`npm update -g` will apply the `update` action to each globally-
-installed package that is `outdated` -- that is, has a version
-that is different from `latest`.
-
+`npm update -g` will apply the `update` action to each globally- installed
+package that is `outdated` -- that is, has a version that is different from
+`latest`.
+NOTE: If a package has been upgraded to a version newer than `latest`, it will
+be _downgraded_.
## SEE ALSO