new version of npm via command code example Example: update npm npm install -g npm@latest // for global install