When I do on my terminal:
npm outdated -g
I get a list of global packages that have updates available, and that's fine:
Package Current Wanted Latest Location
create-next-app 10.0.3 10.0.4 10.0.4 global
eslint-plugin-react 7.21.5 7.22.0 7.22.0 global
firebase-tools 9.0.1 9.1.0 9.1.0 global
After I installed all of them, I wanted to make sure that I got all the packages updated, so I hit again, the same command, but accidentally hit npm outdated -g\
. This time I got a package that not listed before:
Package Current Wanted Latest Location
eslint-plugin-flowtype 3.9.1 3.13.0 5.2.0 global
I hit again npm outdated -g
and got no result, and repeated with backslash and got this package.
I checked this and didn't see anything related. Does anyone know what's the issue? Of course I can see that this eslint-plugin-flowtype
package have breaking changes (3.x vs 5.x), but how is it not displayed in the original npm outdated -g
command?
Thanks.
As shown in the docs, npm outdated
defaults to a depth of 0, so unless you override that, you'll always be seeing only top-level dependencies that are outdated. You can run something like npm outdated --depth 9999
to see all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With