Skip to content

Bumping Node.js dependencies

I usually run ncu to upgrade package.json dependencies to the latest versions.

Sometimes however I want to update to the latest version of a major version, for example I’m on 1.2 and I don’t want to jump to 2.3, I want to stick to 1.3 for example, if it exists.

By default, ncu upgrades the package to the latest version available.

We have the option to only upgrade to minor versions (ignoring major new versions, with breaking changes) with ncu --target minor (or ncu -t minor).

Upgrade only patch versions with ncu -t patch.

I recently also found out about taze. A similar tool.

Use it as taze minor to bump to latest minor changes within the same major version.

Or if you prefer, taze major will check all changes and bump to the latest stable changes including majors.

Patch updates, use taze patch.


→ Get my Node.js Handbook

I wrote 21 books to help you become a better developer:

  • HTML Handbook
  • Next.js Pages Router Handbook
  • Alpine.js Handbook
  • HTMX Handbook
  • TypeScript Handbook
  • React Handbook
  • SQL Handbook
  • Git Cheat Sheet
  • Laravel Handbook
  • Express Handbook
  • Swift Handbook
  • Go Handbook
  • PHP Handbook
  • Python Handbook
  • Linux Commands Handbook
  • C Handbook
  • JavaScript Handbook
  • Svelte Handbook
  • CSS Handbook
  • Node.js Handbook
  • Vue Handbook
...download them all now!

Also, JOIN MY CODING BOOTCAMP, an amazing cohort course that will be a huge step up in your coding career - covering React, Next.js - next edition February 2025

Bootcamp 2025

Join the waiting list