npm install with ^ dependency instead of exact match
问题 I am developing an npm package and realized that it is added with the exact version to the package.json when adding it with npm i -S packagename How can I tell it to use ^0.0.1 instead of 0.0.1 ? Can I define this as the default from within the package itself? 回答1: That happens because ^0.0.1 is considered to be equivalent to 0.0.1 . When the version of a package starts with 0 it's considered to be in development, and the semantic versioning rules are different. An increase in either of the