npm outdated won't show results unless I specify the package

51 Views Asked by At

I saw that there was a new version of Google Clasp available, so I decided to check if any of my other packages had updates. I ran npm outdated -g and didn't get any results. Running npm outdated @google/clasp -g shows the Clasp update I expected to see.

Note: Running npm update -g does update Clasp.

Are there any flags I can add to the outdated command to return the correct results without having to specify the package name?

Here is my output:

C:\>npm outdated -g

C:\>npm outdated @google/clasp -g
Package        Current  Wanted  Latest  Location                    Depended by
@google/clasp    2.4.1   2.4.2   2.4.2  node_modules/@google/clasp  node

C:\>node -v
v16.17.1

C:\>npm -v
8.19.2
0

There are 0 best solutions below