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