0

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 ?

Vasanth kumar
  • 41
  • 2
  • 9

4 Answers4

1

I solved this by changing the version in the file .ruby-version that lives in the root of the app folder.

Allan
  • 308
  • 2
  • 7
0

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

-1

Please follow this simple steps : https://nrogap.medium.com/install-rvm-in-macos-step-by-step-d3b3c236953b

Safi Deraiya
  • 74
  • 1
  • 5
-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.

Shafraz Buhary
  • 643
  • 6
  • 14