I am using the following command to look up versions of the packages that I have.
npm view <packagename> versions
The result that I get back is as follows
... 37 more items ]
I want to get all the results as you can see there are
37 more items which are not shown.
How can I get all the results.
I am using windows command prompt as well as the gitbash tool on windows.
--json to the command
npm view <packagename> versions --json
This is a change to the behavior of util.inspect() in newer versions of Node.js (I'm guessing – this isn't behavior that the npm CLI team changed). If you want to get the full list, and also want to ensure that it's parseable, just add --json to the command, to get the raw output of JSON.stringify() applied to that piece of the package's metadata.