Files
cheatsheet-tldr/tldr/npm-update
2025-12-20 00:20:53 +00:00

26 lines
538 B
Plaintext

---
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 ...}}`