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 ?
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 ?
I solved this by changing the version in the file .ruby-version
that lives in the root of the app folder.
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
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
Please follow this simple steps : https://nrogap.medium.com/install-rvm-in-macos-step-by-step-d3b3c236953b
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.