简体   繁体   中英

I could not install masonry-rails gem in my rails app

when I add masonry-rails gem in my gemfile and try bundle install I get this:

Fetching source index from https://rubygems.org/
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs  from https://rubygems.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch  specs from https://rubygems.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Could not fetch specs from https://rubygems.org/

I check the last version for masonry in rubygem and the last one was in 2014... is masonry still working ? It seems that the problem is from the masonry gem...I try bundle install after I delete it from gem file and it work... Any one can help with that?

i had the same problem. because i was using a virtualbox, and i changed the network config (from NAT to private network) in order to access the rails web server.

So, first, try ping rubygems.org

I install masonry-rails gem in rails 5 app and it installed very well.

You can try to install masonry js from below link:

http://masonry.desandro.com/

尝试在您的Gemfile中将rubygems的https版本更改为http。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM