Update a package

npm.commands.update(packages, callback)


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.

Last modified August 20, 2015           Found a typo? Send a pull request!

Getting Started

Private Modules

Using npm

npm Enterprise

CLI Commands

Configuring npm

Using npm programmatically

npm policy documents

View All On One Page