How to represent build number in NPM version?
问题 I would like to attach a build number to my project in package.json. I'm looking for the best way to do so. I've found that node-semver recognizes a string as a build number if preceded by '+'. For example this would be build '123'. 1.0.0+123 However, the NPM version module will also accept this format, but trims off the build number in package.json. How should I go about representing the build number in package.json? 回答1: + is indeed the way to represent build numbers. But having different