npm automatically update package.json code example Example: npm update syntax npm outdated -g --depth=0