K-G
K-G

Reputation: 2901

GEM Error - google-api-client-0.38.0 requires ruby version ~> 2.4, which is incompatible with the current version, ruby 3.0.2p107

When running bundle install I was getting this error:

Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/........
google-api-client-0.38.0 requires ruby version ~> 2.4, which is incompatible
with the current version, ruby 3.0.2p107

Couldn't find a fix/reason, answer below (thought I'd post this to help someone else/took me a 1 hour to find a fix).

Upvotes: 12

Views: 4993

Answers (1)

K-G
K-G

Reputation: 2901

Run (via Terminal) fixes it:

bundle update

Upvotes: 21

Related Questions