O'Reilly logo
  • Ivan Alonso thinks this is interesting:

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 underscore@1.0.3 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"

From

Cover of Beginning Node.js

Note

This is a good explanation of the way to set dependencies versions.