来自 package.json 的贡献者未显示在 npm 网站上。

4
我已经在package.json中添加了contributors数组,但是该列表没有显示在项目页面上https://www.npmjs.com/package/jquery.terminal
  "author": {
    "name": "Jakub Jankiewicz",
    "email": "jcubic@onet.pl",
    "url": "http://jcubic.pl/jakub-jankiewicz"
  },
  "contributors": [
    {"name":"Johan","url":"https://github.com/johanjordaan"},
    {"name":"Christopher John Ryan","email":"chrisjohnryan@live.com","url":"https://github.com/ChrisJohnRyan"},
    {"name":"Zuo Qiyang","email":"zuoqy.gk@gmail.com","url":"http://zuoqy.com"},
    {"name":"Sébastien Warin","url":"http://sebastien.warin.fr"},
    {"name":"Florian Schäfer","email":"florian.schaefer+github@gmail.com","url":"https://github.com/fschaefer"},
    {"name":"Tomasz Ducin","email":"tomasz@ducin.it","url":"http://ducin.it"},
    {"name":"Hasan","url":"https://github.com/JuanPotato"},
    {"name":"Hraban Luyat","email":"hraban@0brg.net","url":"https://luyat.com"},
    {"name":"Mateusz Paprocki","email":"mattpap@gmail.com","url":"https://github.com/mattpap"},
    {"name":"Martin v. Löwis","url":"https://github.com/loewis"},
    {"name":"Robert Wikman","email":"rbw@vault13.org","url":"flatwired.com"},
    {"name":"Steve Phillips","email":"steve@tryingtobeawesome.com","url":"https://tryingtobeawesome.com/"},
    {"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io"},
    {"name":"Juraj Vitko","url":"https://github.com/youurayy"},
    {"name":"Yutong Luo","email":"yutong@yutongluo.com","url":"https://yutongluo.com"}
  ],

这是我的package.json文件

我在github上报告了此问题,但两天过去了没有回应,所以我决定在SO上提问。

2个回答

5
我认为你指的是模块页面右侧边栏上的“协作者”框。它们听起来相似,但它们是不同的东西。NPM不使用“贡献者”字段来填充该列表,但可以通过手动或通过CLI 将人员添加到该列表中

1
那个链接是针对私有包的,目的是让其他人可以访问该包,虽然这可能会解释清楚一些事情。 - jcubic
是的,因为这是协作者功能的主要目的。您也可以将贡献者添加到公共模块中“只是为了展示”,但最初的功能旨在提供对私有模块的访问权限。 :) - ppajer
这并没有帮助我。我使用命令 npm owner add... 添加了所有者,但什么也没发生。 - B. Bohdan

4
我也遇到了这个问题。使用CLI命令npm owner add没有给我结果。对我有用的是另一种方法:
  1. 在您的软件包页面上进入“管理”选项卡,并邀请维护者(只需输入您想要成为合作者的npm用户登录名)。
  2. 点击“维护者”区块上方的“更新软件包设置”按钮。
这些步骤之后,您的软件包将拥有一个新的合作者! enter image description here

这很令人困惑,它应该被命名为“Maintainers”而不是“collaborators”,后者更像是贡献者而不是管理员。 - jcubic

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接