mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 06:43:17 +00:00
26 lines
510 B
Plaintext
26 lines
510 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/commands/npm-update>.
|
|
|
|
- Update all packages in the current project:
|
|
|
|
`npm update`
|
|
|
|
- Update a specific package in the current project:
|
|
|
|
`npm update {{package}}`
|
|
|
|
- Update a package globally:
|
|
|
|
`npm update {{[-g|--global]}} {{package}}`
|
|
|
|
- Update multiple packages at once:
|
|
|
|
`npm update {{package1 package2 ...}}`
|