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 ?
4
Answers
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.
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.
If gpg is not installed, install it using brew install gnupg.
2.
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