Skip to Content
The Public InterfaceSeptember 12, 2026

The Public Interface

September 12, 2022

Interactively Update NPM Dependencies

Keeping up with your project's dependencies can be difficult and time consuming. Here's the best way I've found to keep up with them.

By Ross Robinonpm / dependencies / ncu

Keeping up with a project’s dependencies can be difficult and time consuming. After trying a variety of methods, here’s the best way I’ve found to manage npm dependencies with npm-check-updates.

Add this script to your package.json, you can name it whatever you prefer, I name mine deps. Alternatively, you can run the script in the command line directly.

By specifying @latest you can ensure that you are always using the latest version of the npm-check-updates package. By using npx instead of installing the package as a dependency, it saves time if other people are contributing to your project. They will not need to install the npm-check-updates when they run npm install to start their dev environment.

Run this command from the workspace folder to run the command and start the interactive process.…

Continue reading