How to Resolve Bundler Install Failures by Increasing Your Bundle Timeout
When Bundler takes a long time to resolve dependencies, a timeout may cause Bundler to install to fail. By default, Bundler has a 10-second timeout value, which can be increased by using the bundle config timeout <number of seconds> command. For example, to increase the timeout to 30 seconds, the command will look like this:
bundle config timeout 30