How long does it take a plugin published to npm to show up in nbbpm?
-
I created a search bar widget and published it to npm yesterday afternoon. You can see it on npm here
https://www.npmjs.com/package/nodebb-widget-search-bar
and here is the github repo
https://github.com/myvr/nodebb-widget-search-bar
It has yet to appear in the "Find Plugins" section of the admin panel. Is there something wrong with my package.json, or do I just need to be more patient?
-
Usually less than 24 hours, but it's been slow lately.
You can also manually push it, I would recommend that if it's already been a while.
curl -X PUT https://packages.nodebb.org/api/v1/plugins/nodebb-widget-search-bar
If your package.json is correct, that should make it show up immediately.
-
Last couple of weeks been forever till updates happen.
For my testing if it doesnt appear on 24h it wont appear so better do another update and wait the magic appears -
@deiden26 said in How long does it take a plugin published to npm to show up in nbbpm?:
Bummer. I'll keep posting on occasion until it works. Thanks
I end up installingn manually cause i hate wait for 1 day
I have one update now 3 days and did yesterday another bump but still no pop -
Nice widget btw
-
@julian said in How long does it take a plugin published to npm to show up in nbbpm?:
Hm, odd.
It did work after I manually told nbbpm to update the plugin, so it shows up now: https://packages.nodebb.org/api/v1/suggest?package[]=nodebb-widget-search-bar&version=1.1.2
@deiden26
PUT
, notPOST
I actually was using PUT and not post, still had the following result for whatever reason
<html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.10.0</center> </body> </html>
The original command was
curl -X PUT https://packages.nodebb.org/api/v1/plugins/nodebb-plugin-search-bar
EDIT: Now I see you are referencing my "I'll keep posting" comment. I just had my head in the forum lingo!
-
@julian Well, that explains a lot. I knew I was missing something very basic. One bad thing about pasting a command every time you want to run it instead of writing the thing out: the mistake you make once is the mistake you make EVERY TIME
Thanks for the sanity check!
-
@deiden26 That said, you're not going insane, the package manager has been delayed in updating packages simply because npm resets their counter every once in awhile, and doesn't automatically notify nbbpm in any way. Will code a fix for it today so hopefully this is the last we'll hear of it.