npm-check-updates manages the versions of installed packages in the package.json file.
npm i -g npm-check-updatesncuChecks for the latest versions of installed packages in the following sections: dependencies, devDependencies, peerDependencies, optionalDependencies, and packageManager.
ncu --upgrade (-u)Only upgrades the versions in the package.json file to the latest versions. It does not upgrade the package-lock.json file or the node_modules folder. To upgrade them, run
npm i.ncu --interactive (-i)Runs in interactive mode to choose which packages to upgrade.
--target (-t) <version-name>Scopes packages to the specified version.
--dep <section-names>Scopes packages to the specified dependency sections.
--global (-g)Scopes global packages.