Bower install fails with 502 - Bad Gateway when downloading bower packages.
(下载bower软件包时,Bower安装失败,使用502 - Bad Gateway。)
For example bower install for ember library gives following response in command line.
(例如,用于ember库的bower安装在命令行中提供以下响应。)
EINVRES Request to https://bower.herokuapp.com/packages/ember failed with 502(EINVRES请求https://bower.herokuapp.com/packages/ember失败,502)
EINVRES Request to https://bower.herokuapp.com/packages/ember failed with 502
(EINVRES请求https://bower.herokuapp.com/packages/ember失败,502)
When http://bower.herokuapp.com/ is accessed directly from URL it gives the following message.
(当直接从URL访问http://bower.herokuapp.com/时 ,它会给出以下消息。)
This Bower version is deprecated.(此Bower版本已弃用。) Please update it: npm install -g bower.(请更新它:npm install -g bower。) The new registry address is https://registry.bower.io(新的注册地址是https://registry.bower.io)
This Bower version is deprecated.
(此Bower版本已弃用。)
(请更新它:npm install -g bower。)
(新的注册地址是https://registry.bower.io)
Bower is deprecating their registry hosted with Heroku.
(Bower正在弃用Heroku托管的注册表。)
(http://bower.herokuapp.com/将不再可访问,或者可能会间歇性地关闭,因此,迫使用户进入新的注册表。)
Users working on old bower versions can update the .bowerrc file with the following data.
(使用旧的bower版本的用户可以使用以下数据更新.bowerrc文件。)
{ "registry": "https://registry.bower.io" }
.bowerrc file can be located at the same folder where bower.json and bower_components folder is located.
(.bowerrc文件可以位于bower.json和bower_components文件夹所在的同一文件夹中。)
(如果它不存在,你可以制作一个。)
For references check the below links
(有关参考,请查看以下链接)
(https://twitter.com/bower/status/918073147789889536)
(https://gist.github.com/sheerun/c04d856a7a368bad2896ff0c4958cb00)
2.1m questions
2.1m answers
60 comments
57.0k users