mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
538 B
Plaintext
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 ...}}`
|