Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodejs中的package.json里面的版本号 ~ 与 ^ 的区别 #11

Open
milixie opened this issue Mar 27, 2018 · 0 comments
Open

nodejs中的package.json里面的版本号 ~ 与 ^ 的区别 #11

milixie opened this issue Mar 27, 2018 · 0 comments

Comments

@milixie
Copy link
Owner

milixie commented Mar 27, 2018

一个版本号是三位 x.y.z

  • x 是表示 major 主版本号
  • y 是表示 minor 中版本号
  • z 是表示 patch 小版本号

波浪符 ~ 会将版本更新到 minor version
也就是说 ~1.3.5 代表的是 >= 1.3.5 & <1.4.0版本

尖号符 ^ 会将版本更新到 major version
也就是说 ^1.3.5 代表的是 >= 1.3.5 & <2.0.0版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant