npm update node global code example Example 1: npm update Click to copynpm install -g npm@latest Example 2: npm update Click to copynpm update --save