Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Solution 1
Are you using rails 4? check your Gemfile and replace
source 'http://rubygems.org'
to
source 'https://rubygems.org'
Solution 2
Try reboot your machine , mainly if you are working with vagrant, or also if you have any firewall. They may could have a block thread
user3841611
Updated on June 04, 2022Comments
-
user3841611 almost 2 years
When I run
rails new project
to make new project in Ruby on rails on my PC.
It works fine. Then I run
bundle install
and it throws this error:create vendor/assets/stylesheets/.keep run bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching source index from https://rubygems.org/
Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from https:// rubygems.org/
Retrying source fetch due to error (3/3): Bundler::HTTPError Could not fetch specs from https:// rubygems.org/
When I try run my project it throws this error:
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/resolver.rb:352:in `resolve': Could not find gem 'rails (= 4.1.1) x86-mingw32' in the gems available on this machine. (Bundler::GemNotFound)
Can somebody help me?
-
user3841611 over 9 yearsI update bundler to 1.6.3 and have still this error run bundle install Fetching source index from rubygems.org Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from rubygems.org Retrying source fetch due to error (3/3): Bundler::HTTPError Could not fetch specs from rubygems.org Could not fetch specs from rubygems.org without that root quote...