来自package.json的贡献者不会出现在npm网站上

时间:2017-02-07 22:30:17

标签: json node.js npm

我在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 file

我在github报告了这一点,但是在两天之后没有回应我决定在SO上询问。

2 个答案:

答案 0 :(得分:1)

我认为你的意思是"合作者"模块页面右侧边栏上的框。它们听起来很相似,但它们是不同的东西。 NPM没有使用contributors字段来填充该列表,但是you can add people to it manually or through the CLI

答案 1 :(得分:0)

我也有这个问题。 CLI命令npm owner add没有给我结果。我发现了其他对我有用的方法:

  1. 转到软件包页面上的“管理”标签并邀请维护者(只需输入您要成为合作者的npm用户登录名即可)。
  2. 按下“维护者​​”框上方的“更新软件包设置”按钮。

完成这些步骤后,您的包裹将再有一个合作者!

enter image description here