Semantic Versioning in NPM / package.json NPM and package.json have great support for semantic versioning. You can tell NPM which version of a package you want. For example, the following code installs the exact version 1.0.3 of underscore: $ npm install firstname.lastname@example.org You can tell NPM that you are okay with all patch versions of 1.0 using a tilde “~”: $ npm install underscore@"~1.0.0" Next up, to tell NPM that you are okay with any minor version changes use “^”: $ npm install underscore@"^1.0.0"
This is a good explanation of the way to set dependencies versions.
Share this highlighthttp://www.safaribooksonline.com/a/beginning-nodejs/10211996/