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