npm update -g

Category: Node.js & npm/yarn

npm update -g

Update all globally installed packages

Bumps every globally installed package to the newest version that satisfies its saved range, so command-line tools you installed with npm install -g stay current. Runs the same update logic as the project-level npm update. Review changes with npm outdated -g first.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.