npm version Explained
What npm version does, with an example.
Published November 12, 2026
npm version bumps the version number in package.json according to semantic versioning rules and creates a git tag.
Key points
- Part of the standard npm CLI that ships with Node.js
Example
npm version patch