2011-11-22 01:48:45 +08:00
|
|
|
npm-update(1) -- Update a package
|
|
|
|
=================================
|
|
|
|
|
|
|
|
## SYNOPSIS
|
|
|
|
|
2013-02-16 02:49:16 +08:00
|
|
|
npm update [-g] [<name> [<name> ...]]
|
2011-11-22 01:48:45 +08:00
|
|
|
|
|
|
|
## DESCRIPTION
|
|
|
|
|
|
|
|
This command will update all the packages listed to the latest version
|
|
|
|
(specified by the `tag` config).
|
|
|
|
|
2015-01-17 16:50:09 +08:00
|
|
|
It will also install missing packages. As with all commands that install
|
|
|
|
packages, the `--dev` flag will cause `devDependencies` to be processed
|
|
|
|
as well.
|
2011-11-22 01:48:45 +08:00
|
|
|
|
2014-09-25 05:41:07 +08:00
|
|
|
If the `-g` flag is specified, this command will update globally installed
|
|
|
|
packages.
|
|
|
|
|
|
|
|
If no package name is specified, all packages in the specified location (global
|
|
|
|
or local) will be updated.
|
2013-02-16 02:49:16 +08:00
|
|
|
|
2011-11-22 01:48:45 +08:00
|
|
|
## SEE ALSO
|
|
|
|
|
|
|
|
* npm-install(1)
|
|
|
|
* npm-outdated(1)
|
2013-07-12 23:55:57 +08:00
|
|
|
* npm-registry(7)
|
2013-07-25 04:23:44 +08:00
|
|
|
* npm-folders(5)
|
|
|
|
* npm-ls(1)
|