結論
--json
オプションを付ける。
具体例
表示対象がたくさんあると more items
と出て実行が止まります。
$ npm info npm versions [ '1.1.25', '1.1.70', '1.1.71', (中略) '2.1.10', '2.1.11', '2.1.12', ... 173 more items ] $
--json
オプションを付与してあげましょう。
$ npm info npm versions --json [ "1.1.25", "1.1.70", "1.1.71", (中略) "5.5.0", "5.5.1", "5.6.0" ]
全て表示されました。