2023-08-23 22:27:16 +01:00
|
|
|
# ncu
|
|
|
|
|
|
|
|
> Find newer versions of package dependencies and check outdated npm packages locally or globally.
|
|
|
|
> `ncu` only updates dependency versions in `package.json`. To install the new versions, run `npm install` afterwards.
|
|
|
|
> More information: <https://github.com/raineorshine/npm-check-updates>.
|
|
|
|
|
|
|
|
- List outdated dependencies in the current directory:
|
|
|
|
|
|
|
|
`ncu`
|
|
|
|
|
|
|
|
- List outdated global npm packages:
|
|
|
|
|
2023-11-23 15:19:41 +00:00
|
|
|
`ncu --global`
|
2023-08-23 22:27:16 +01:00
|
|
|
|
|
|
|
- Upgrade all dependencies in the current directory:
|
|
|
|
|
2023-11-23 15:19:41 +00:00
|
|
|
`ncu --upgrade`
|
2023-08-23 22:27:16 +01:00
|
|
|
|
|
|
|
- Interactively upgrade dependencies in the current directory:
|
|
|
|
|
2023-11-23 15:19:41 +00:00
|
|
|
`ncu --interactive`
|
|
|
|
|
|
|
|
- List outdated dependencies up to the highest minor version:
|
|
|
|
|
|
|
|
`ncu --target {{minor}}`
|
|
|
|
|
|
|
|
- List outdated dependencies that match a keyword or regular expression:
|
|
|
|
|
|
|
|
`ncu --filter {{keyword|/regex/}}`
|
|
|
|
|
|
|
|
- List only a specific section of outdated dependencies:
|
|
|
|
|
|
|
|
`ncu --dep {{dev|optional|peer|prod|packageManager}}`
|
2023-08-23 22:27:16 +01:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
2023-11-23 15:19:41 +00:00
|
|
|
`ncu --help`
|