List all versions of an npm package

In this post, we will show you how to list all versions of a npm package on npmjs.org site.

Check out the following post if it fits your need: Check the installed version of a npm package.

To list all versions of a npm package, we simply run the following command:

npm show <package-name> versions

For example:


You want to list all versions of @angular/core package, you will run the below command.

$ npm show @angular/core versions

[ '0.0.0-0',
  '0.0.0-1',
  '0.0.0-2',
  '0.0.0-3',
  '0.0.0-4',
  '0.0.0-5',
  '0.0.0-6',
  '0.0.0-7',
  '2.0.0-rc.0',
  '2.0.0-rc.1',
  '2.0.0-rc.2',
  '2.0.0-rc.3',
  '2.0.0-rc.4',
  '2.0.0-rc.5',
  '2.0.0-rc.6',
  '2.0.0-rc.7',
  '2.0.0',
  '2.0.1',
  '2.0.2',
  '2.1.0-beta.0',
  '2.1.0-rc.0',
  '2.1.0',
  '2.1.1',
  '2.1.2',
  '2.2.0-beta.0',
  '2.2.0-beta.1',
  '2.2.0-rc.0',
  '2.2.0',
  '2.2.1',
  '2.2.2',
  '2.2.3',
  '2.2.4',
  '2.3.0-beta.0',
  '2.3.0-beta.1',
  '2.3.0-rc.0',
  '2.3.0',
  '2.3.1',
  '2.4.0',
  '2.4.1',
  '2.4.2',
  '2.4.3',
  '2.4.4',
  '2.4.5',
  '2.4.6',
  '2.4.7',
  '2.4.8',
  '2.4.9',
  '2.4.10',
  '4.0.0-beta.0',
  '4.0.0-beta.1',
  '4.0.0-beta.2',
  '4.0.0-beta.3',
  '4.0.0-beta.4',
  '4.0.0-beta.5',
  '4.0.0-beta.6',
  '4.0.0-beta.7',
  '4.0.0-beta.8',
  '4.0.0-rc.0',
  '4.0.0-rc.1',
  '4.0.0-rc.2',
  '4.0.0-rc.3',
  '4.0.0-rc.4',
  '4.0.0-rc.5',
  '4.0.0-rc.6',
  '4.0.0',
  '4.0.1',
  '4.0.2',
  '4.0.3',
  '4.1.0-beta.0',
  '4.1.0-beta.1',
  '4.1.0-rc.0',
  '4.1.0',
  '4.1.1',
  '4.1.2',
  '4.1.3',
  '4.2.0-beta.0',
  '4.2.0-beta.1',
  '4.2.0-rc.0',
  '4.2.0-rc.1',
  '4.2.0-rc.2',
  '4.2.0',
  '4.2.1',
  '4.2.2',
  '4.2.3',
  '4.2.4',
  '4.2.5',
  '4.2.6',
  '4.3.0-beta.0',
  '4.3.0-beta.1',
  '4.3.0-rc.0',
  '4.3.0',
  '4.3.1',
  '4.3.2',
  '4.3.3',
  '4.3.4',
  '4.3.5',
  '4.3.6',
  '4.4.0-RC.0',
  '4.4.0',
  '4.4.1',
  ... 39 more items ]

0 0 vote
Article Rating
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x