4

I've added contributors array in package.json but the list don't show up on project page https://www.npmjs.com/package/jquery.terminal

  "author": {
    "name": "Jakub Jankiewicz",
    "email": "[email protected]",
    "url": "http://jcubic.pl/jakub-jankiewicz"
  },
  "contributors": [
    {"name":"Johan","url":"https://github.com/johanjordaan"},
    {"name":"Christopher John Ryan","email":"[email protected]","url":"https://github.com/ChrisJohnRyan"},
    {"name":"Zuo Qiyang","email":"[email protected]","url":"http://zuoqy.com"},
    {"name":"Sébastien Warin","url":"http://sebastien.warin.fr"},
    {"name":"Florian Schäfer","email":"[email protected]","url":"https://github.com/fschaefer"},
    {"name":"Tomasz Ducin","email":"[email protected]","url":"http://ducin.it"},
    {"name":"Hasan","url":"https://github.com/JuanPotato"},
    {"name":"Hraban Luyat","email":"[email protected]","url":"https://luyat.com"},
    {"name":"Mateusz Paprocki","email":"[email protected]","url":"https://github.com/mattpap"},
    {"name":"Martin v. Löwis","url":"https://github.com/loewis"},
    {"name":"Robert Wikman","email":"[email protected]","url":"flatwired.com"},
    {"name":"Steve Phillips","email":"[email protected]","url":"https://tryingtobeawesome.com/"},
    {"name":"coderaiser","email":"[email protected]","url":"http://coderaiser.github.io"},
    {"name":"Juraj Vitko","url":"https://github.com/youurayy"},
    {"name":"Yutong Luo","email":"[email protected]","url":"https://yutongluo.com"}
  ],

here is my package.json file

I've reported that on github but after two days with no response I decide to ask on SO.

2 Answers 2

6

I think you mean the "Collaborators" box on the right sidebar of the module page. They do sound similar but they are different things. NPM doesn't use the contributors field to populate that list, but you can add people to it manually or through the CLI.

3
  • 1
    that clarify things but that link is for private packages and it's about giving access to the package to other people.
    – jcubic
    Commented Feb 7, 2017 at 22:47
  • Yes, because that is the main purpose of the collaborators feature. You can add your contributors to it "just for show" on public modules as well, but the original functionality was intended to give access to private modules. :)
    – ppajer
    Commented Feb 7, 2017 at 22:51
  • It didn't help me. I added owner using command npm owner add... and nothing happened.
    – B. Bohdan
    Commented Jul 5, 2019 at 11:09
4

I also had this problem. CLI command npm owner add didn't give me result. I found other way that works for me:

  1. Go to 'Admin' tab on your package page and invite maintainer (simply type in npm user login you want to be collaborator).
  2. Press button 'Update Package Settings' above 'Maintainers' block.

After these steps your package will have one more collaborator!

enter image description here

1
  • This is confusing it should be named Maintainers not collaborators, which is more like contributors than the admins.
    – jcubic
    Commented Oct 23, 2019 at 9:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.