npm view 获取更多项目

npm view get more items

我正在使用以下命令来查找我拥有的软件包的版本。

npm view <packagename> versions

我得到的结果如下

  '2.4.0-2016-10-06-6743',
  '2.4.0-2016-10-07-6750',
  '2.4.0-2016-10-07-6751',
  '2.4.0-2016-10-07-6754',
  '2.4.0-2016-10-07-6755',
  '2.4.0-2016-10-10-6763',
  '2.4.0-2016-10-11-6770',
  '2.4.0-2016-10-11-6790',
  '2.4.0-2016-10-12-6799',
  '2.4.0-2016-10-12-6800',
  '2.4.0-2016-10-13-6806',
  '2.4.0-2016-10-13-6807',
  '2.4.0-2016-10-13-6808',
  '2.4.0-2016-10-14-6810',
  ... 37 more items ]

我想获取所有结果,如您所见,有 37 more items 个未显示。

我怎样才能得到所有的结果。

我正在使用 windows 命令提示符以及 windows 上的 gitbash 工具。

尝试将 --json 添加到命令中

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.

https://github.com/npm/npm/issues/13376#issuecomment-232525623