how to upgrade any package with npm code example Example 1: npm update syntax npm outdated -g --depth=0 Example 2: npm update syntax npm outdated