check for npm package updates code example Example 1: npm check updates > npx npm-check-updates -u Example 2: npm package update to latest npm-upgrade