skip to Main Content

ı want to develop project with react native Cli. ı read the react native documentation. ı should set cocoapods when ı write sudo gem install cocoapods. the terminal said me 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.

ı couldnt update ruby. when ı write rvm install 2.7.6 different error return me.
what should ı do

ı couldnt update ruby. when ı write rvm install 2.7.6 different error return me.
what should ı do

2

Answers


  1. If you read the error message carefully, you may find a solution within the error message.

    sudo gem install drb -v 2.0.5
    

    You can try this line in terminal.

    Login or Signup to reply.
  2. if you are using macOS, How about using homebrew than gem?
    I had exactly same problem, so I tried to install it using homebrew

    brew install cocoapods

    My problem was clearly resolved!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search