I want to develop a project with react native Cli. I read the react native documentation. I should install cocoapods.
But when I write sudo gem install cocoapods
, the terminal returns
Error installing cocoapods:
The last version of drb (>= 0) to support your Ruby & RubyGems was 2.0.5. Try installing it with `gem install drb -v 2.0.5` and then running the current command again
drb requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.
I couldn't update ruby. When I write rvm install 2.7.6
a different error is returned. What should I do?