how to update npm package to latest version with terminal code example Example: upgrade npm version npm install -g npm@latest