---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm update

> Update packages in the current project.
> More information: <https://docs.npmjs.com/cli/npm-update/>.

- Update all packages in the current project:

`npm {{[up|update]}}`

- Update a specific package in the current project:

`npm {{[up|update]}} {{package}}`

- Update a package globally:

`npm {{[up|update]}} {{package}} {{[-g|--global]}}`

- Update multiple packages at once:

`npm {{[up|update]}} {{package1 package2 ...}}`
