npm-check-updates
npm-check-updates upgrades your package.json dependencies to the latest versions, ignoring specified versions.
Installation
install globally:
npm install -g npm-check-updates
Usage
Show all new dependencies (excluding peerDependencies) for the project in the current directory:
ncu
Upgrade a project’s package file:
ncu -u
only modifies package.json file. Run npm install
to update your installed packages and package-lock.json:
npm install
Check global packages:
ncu -g