After successfully installed all of the aboves I was going to create react-native app using npx react-native init AwesomeProject comand and faced Your Ruby version is 2.6.8, but your Gemfile specified 2.7.5 error is also given in attached file. please check it and help me to suggest the way to solved.
CodePudding user response:
It seems like you need to upgrade your machines ruby installation from 2.6.8 to 2.7.5. If you have rbenv installed you can install multiple versions of ruby onto your machine and switch between them.
rbenv install 2.7.5
CodePudding user response:
I have followed these instructions to solve this issue:
Homebrew install: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" watchman install: brew install watchman
Install Ruby: followed rbenv Official Github Repo link to install the required version of ruby
Install CocoaPods: sudo gem install cocoapods CocoaPods in fixed location: sudo gem install -n /usr/local/bin ffi cocoa pods
After the environment setup, it works perfectly.
Those users who use the MacBook air M1, Please make sure that your terminal is working on the Rosetta
Finder > Go > Utilities > Terminal > GetInfo