Home > database >  Error Ruby "Your Ruby version is 3.0.2, but your Gemfile specified 2.7.1"
Error Ruby "Your Ruby version is 3.0.2, but your Gemfile specified 2.7.1"

Time:09-27

I recently cloned an existing repo I will be working on. The project uses Jekyll I installed ruby and followed each step from https://jekyllrb.com/docs/. When I go into the directory and type bundle exec jekyll serve, I get the error "Your Ruby version is 3.0.2, but your Gemfile specified 2.7.1". I use ohmyzsh and Zsh and I can't seem to figure out how to fix this issue. I don't want to mess with the gemfile. thank you.

CodePudding user response:

The existing repository uses ruby version "2.7.1", but your installed and selected ruby version is "3.0.2". Please switch to ruby version "2.7.1" and then try again

  • Related