mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
ncu: add page (#10617)
add page for `npm-check-updates`. --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
ab928dd343
commit
560ec3972f
1 changed files with 25 additions and 0 deletions
25
pages/common/ncu.md
Normal file
25
pages/common/ncu.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# 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:
|
||||
|
||||
`ncu -g`
|
||||
|
||||
- Upgrade all dependencies in the current directory:
|
||||
|
||||
`ncu -u`
|
||||
|
||||
- Interactively upgrade dependencies in the current directory:
|
||||
|
||||
`ncu -i`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ncu -h`
|
Loading…
Add table
Reference in a new issue