update npm package @latest code example Example 1: npm update all npm update --save Example 2: npm get latest version of package npm show {pkg} version