I use npm
to install some command line tools. Having the itch to always be up to date, I found the command npm -g outdated
.
What is the difference between the columns wanted
and latest
?
The documentation states:
The resulting field 'wanted' shows the latest version according to the version specified in the package.json, the field 'latest' the very latest version of the package.
However I don't find it clear at all. For example on my system I get:
Package Current Wanted Latest Location
cordova 5.3.1 5.3.3 5.3.1 lib
npm 3.3.4 3.3.4 3.3.3 lib
How can wanted
be higher than latest
? It seems to contradict:
the field 'latest' the very latest version of the package
Which version should I update to (I only use the command-line, not any node.js code)?
See Question&Answers more detail:os