snippetbashTip
ncu — Find newer versions of package dependencies and check outdated npm packages locally or globally. `nc
Viewed 0 times
commandfindversionsncudependenciesclipackagenewer
Problem
How to use the
ncu command: 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>.Solution
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:
ncuList outdated global
npm packages:ncu --globalUpgrade all dependencies in the current directory:
ncu --upgradeInteractively upgrade dependencies in the current directory:
ncu --interactiveList outdated dependencies up to the highest minor version:
ncu --target {{minor}}List outdated dependencies that match a keyword or
regex:ncu --filter {{keyword|/regex/}}List only a specific section of outdated dependencies:
ncu --dep {{dev|optional|peer|prod|packageManager}}Display help:
ncu --helpCode Snippets
List outdated dependencies in the current directory
ncuList outdated global `npm` packages
ncu --globalUpgrade all dependencies in the current directory
ncu --upgradeInteractively upgrade dependencies in the current directory
ncu --interactiveList outdated dependencies up to the highest minor version
ncu --target {{minor}}Context
tldr-pages: common/ncu
Revisions (0)
No revisions yet.