Search This Blog

Wednesday, November 9, 2022

[Mac OS] React Native - Environment Setting

 Trouble Shooting:

% bundle install

Your Ruby version is 2.6.3, but your Gemfile specified 2.7.4

or 

Your Ruby version is 2.6.8, but your Gemfile specified 2.7.5


How to install ruby 2.7.4 ?

 % brew install rbenv

% rbenv install 2.7.4

% rbenv global 2.7.4

% export PATH="$HOME/.rbenv/shims:$PATH"

% eval "$(rbenv init -)"


Ref:

https://stackoverflow.com/questions/74189532/your-ruby-version-is-2-6-8-but-your-gemfile-specified-2-7-5

https://stackoverflow.com/questions/71371079/fix-your-ruby-version-is-2-6-8-but-your-gemfile-specified-2-5-5/71392855#71392855


No comments: