问答详情
源自:3-1 Yeoman实践

package.json讲解疑问

尖括号^的讲解有问题,应该是不修改最左边的版本号。官网注解是:Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for versions 0.X >=0.1.0, and no updates for versions 0.0.X.

提问者:林小强 2016-05-13 20:52

个回答

  • 谢南波
    2017-04-25 22:41:54

    https://docs.npmjs.com/misc/semver#versions    官网解释

  • Kyle_Bai
    2016-05-24 23:46:10

    Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple. In other words, this allows patch and minor updates for versions 1.0.0 and above, patch updates for versions 0.X >=0.1.0, and no updates for versions 0.0.X.

    thanks! 官网解释非常清晰。^ 不能修改最左边的版本号,且只能更新中间的 minor 和 小版本 patch,且是往新版本更新。