HBK
HBK

Reputation: 5

I got Error when installing coocapods from terminal

Installing cocoapods from terminal "ERROR: Error installing cocoapods: There are no versions of cocoapods-downloader (>= 2.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for? cocoapods-downloader requires Ruby version >= 2.7.4. The current ruby version is 2.6.10.210."

I'm using M1 Air, could it be related to that?

Upvotes: 0

Views: 117

Answers (1)

Max
Max

Reputation: 22375

You're probably using the Ruby version built-in to macOS. That's a recipe for disaster since it's ancient and cannot be easily managed if you have multiple Ruby projects with different requirements.

Install rbenv and use it to install a newer version of Ruby, then use that to install cocoapods.

Upvotes: 0

Related Questions