npm version to add alpha postfix
问题 How can i bump the package.json version to contain -alpha using npm versioning. Running npm version <new version> will bump the version of the package.js file, however i want to add -alpha postfix to the version, but i am unable to as it is not stated in the documentation, but its supported by semver itself. Actual Result: > npm version prerelease > v0.2.1-1 Expected Result: > v0.2.1-alpha 回答1: While -alpha and -beta are common prerelease tags, they are not defined by SemVer. -alpha.1, -alpha