If you get something like this when running bundle install
...
Network error while fetching https://rubygems.org/quick/Marshal.4.8/xxx-x.x.x.gemspec.rz (execution expired)
...this solution might work for you.
First, make sure you have tried all the troubleshoot solutions here.
Next, please also make sure you are using the latest cacert.pem file. You can download it from here. In my case, I saved it at /usr/local/etc/openssl/certs/cacert.pem
.
If it's still doesn't work, you can try disabling IPv6 in your Mac.
$ networksetup -setv6off Wi-Fi
Result:
Of course, if you need the IPv6 again, run the following command:
$ networksetup -setv6automatic Wi-Fi
Result:
In my case, the bundle install
command worked after I disabled IPv6. Strange, right?
It worked for on Windows 10 as well by disabling the IPv6 box as shown in the picture:
Thank you!