Adjusting NPM versioning without the ‘v’ prefix is a straightforward process. Follow this quick guide:
Command to Set Version:
Use the following command to set the NPM version without the ‘v’ prefix:
npm version 1.0.0 --tag-version-prefix= -m 'Bump version up to 1.0.0'
This command sets the version to ‘1.0.0’ and omits the ‘v’ prefix when tagging your NPM version. Ensure to replace ‘1.0.0’ with your desired version number.
By executing this command, you can effectively set an NPM version without the ‘v’ prefix for your project.