npm upgrade list code example Example 1: upgrade npm npm i -g npm-upgrade Example 2: npm check updates > npx npm-check-updates -u