最佳答案
How do I find out all previous versions of a package using npm?
In this instance, I am interested in cordova. If I execute npm install -g cordova
, I will install the latest version (which is what you'd expect).
If I do npm install -g cordova@3.1.0-0.1.0
then I get the specific version installed - I would like to know because I am having troubles with the latest version of a package, and would like to test which version the problem occurred in - but cannot do that if I don't know which npm package versions there have been.