Skip to content

Updating NPM Depencencies

Posted on:December 8, 2023 at 06:19 PM at 1 min read

Instead of updating depencencies one by one using npm install package-name@latest, the following can be used:

Installing the npm-check-updates package globally

npm install -g npm-check-updates

Check all dependencies

ncu

Check patches

ncu -i --target patch
# OR
ncu -u --target patch

-i lets you choose.

Check minor updates

ncu -i --target minor

Check major updates

ncu -i

Comments