javascript - Does package.json "latest" versions include beta? - Stack Overflow

In package.json you can specify a package to be synced with the latest version:{...,"devDependenci

In package.json you can specify a package to be synced with the latest version:

{
   ...,
   "devDependencies": {
      "gulp": "latest",
      ...
   },
   ...
}

Does "latest" include the alpha or beta versions, or just the latest stable version? I couldn't find definitive documentation on this.

In package.json you can specify a package to be synced with the latest version:

{
   ...,
   "devDependencies": {
      "gulp": "latest",
      ...
   },
   ...
}

Does "latest" include the alpha or beta versions, or just the latest stable version? I couldn't find definitive documentation on this.

Share Improve this question asked Mar 9, 2016 at 14:09 HealforgreenHealforgreen 5795 silver badges19 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 4

The maintainers get to set the 'latest' tag to whatever they want. To wit:

@mac:~/projects/client$ npm outdated
Package       Current        Wanted        Latest  Location
bourbon         4.2.6         4.2.6  5.0.0-beta.2  
webpack  2.1.0-beta.4  2.1.0-beta.4       1.12.14 

'Latest' is set to the beta on bourbon, but webpack still has the stable as 'latest'.

There's also a tag 'next' that some maintainers use for prerelease version.

By default, NPM dependencies are pulled from the NPM repository. Authors must manually upload new versions of their software to the NPM repository, so the "@latest" version of the code hosted on NPM is different from the latest version of the code that exists anywhere (e.g., on GitHub).

According to the NPM repository's info page on Sails, the latest NPM-hosted version is 0.9.16 while the current GitHub version is 0.10.0-rc3.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745036786a4607569.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信