Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How am I supposed to find out what is the latest stable version of an npm package?

Tags:

npm

How can I find the latest stable version of an npm package?

Other than going to http://search.npmjs.org and searching for it?

I usually need the version to put it in my package.json.

like image 704
atimb Avatar asked Jun 27 '12 06:06

atimb


People also ask

How can we check the current version of npm?

To see the most current version of a package in the npm repository, use the npm view npm get version of package-name version command.


1 Answers

Use npm view [package-name] dist-tags in the command line.

Example:

$ npm view express dist-tags

{ latest: '2.5.9',
  '3.0': '3.0.0beta2' }
like image 60
atimb Avatar answered Sep 21 '22 13:09

atimb