What is the default (official?) Bower registry URL?

匿名 (未验证) 提交于 2019-12-03 02:06:01

问题:

What is the main Bower registry URL?

We're trying to set up Bower to use our registry first, then the "official" Bower registry second.

We've created our own little Bower registry based on the endpoints exposed in [bower/registry]1. Works great.

Based on this doc, it looks like we need to create a .bowerrc file with an array of registries like

{   "registry": {     "search": [       "http://myCustomRegistry/api",       "theMainBowerRegistry"     ]   } }

Works fine for use my custom registry, but I can't find the URL for the main Bower registry. Anyone?

回答1:

The default registry URL is => https://bower.herokuapp.com



回答2:

Actually, it's just https://bower.herokuapp.com. /packages is part of the REST API routes, which would create redundant URL segments in your Bower requests (e.g. https://bower.herokuapp.com/packages/search/bootstrap`).



回答3:

The default registry as of now is https://raw.githubusercontent.com/bower/components/1.0.0 for anyone looking in 2017. Entering this into my .bowerrc file solved my ECONNRESET errors. Bower moved away from the herokuapp repository it was using to Github.

The link to Bower's link on Twitter describing this move is linked below.

https://twitter.com/bower/status/796046017133211648



回答4:

Now it is https://registry.bower.io

https://twitter.com/bower/status/908359136601133056

See the explanation https://gist.github.com/sheerun/c04d856a7a368bad2896ff0c4958cb00



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!