npm update Explained
What npm update does, with an example.
Published November 11, 2026
npm update upgrades installed packages to the latest version allowed by the version ranges in package.json.
Key points
- Part of the standard npm CLI that ships with Node.js
Example
npm update