DEV Community

Cover image for Easily upgrade npm dependencies with npm-check-updates
Andreas Bergström
Andreas Bergström

Posted on • Edited on • Originally published at andreasbergstrom.dev

Easily upgrade npm dependencies with npm-check-updates

For small or hobby projects, the npm outdatednpm install <pkg>@latest per-package dance is more friction than it's worth. npx npm-check-updates --upgrade (or ncu -u if installed) rewrites every version in package.json to the latest at once, then a single npm i pulls them in.

The full post covers the basic flow plus the flags worth knowing — --filter to scope by name, --peer to include peer deps, --greatest to ignore semver ranges, and --global for tools you've installed globally.


Originally published at andreasbergstrom.dev — read the full post there.

Top comments (0)