avatarHK Blog
Web Dev/Tool

npm

Publish Package

Modify the version in package.json.

Use npm version to update package version.

npm version minor
npm publish
npm publish --provenance # publish with provenance statement

Unpublish

npm-unpublish

If you published a version and realized a problem with it, then you can unpublish it with the following command.

npm unpublish <package name>@<version>
npm unpublish [email protected]

How is this guide?

On this page