skip to Main Content

While I’m creating an react native new project in Mac OS . Im getting an error like “Your Ruby version is 2.7.4, but your Gemfile specified 2.7.3”

How to solve this ?

4

Answers


  1. Goto the project root directory. You will find a file called .ruby-version and open it. Edit it and change 2.7.3 to 2.7.4 and save.

    Login or Signup to reply.
  2. I solved this by changing the version in the file .ruby-version that lives in the root of the app folder.

    Login or Signup to reply.
  3. Install rvm which stands for ruby version manager
    Visit https://rvm.io/rvm/install or follow the instructions

    1.

    gpg –keyserver keyserver.ubuntu.com –recv-keys
    409B6B1796C275462A1703113804BB82D39DC0E3
    7D2BAF1CF37B13E2069D6956105BD0E739499BDB

    If gpg is not installed, install it using brew install gnupg.

    2.

    curl -sSL https://get.rvm.io | bash -s stable –ruby

    1. Change and install ruby using rvm,

      rvm install 2.7.3
      rvm use 2.7.3

    use rvm list to show all ruby version installed

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