Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4634

Could not find 'bundler' (2.5.7)

$
0
0

MacOS user here. I am trying to build a website hosted on github. Followed the instructions from this website but used a different jekyll theme. When I try to preview my website locally viabundle exec jekyll serveI get the following error:

Could not find 'bundler' (2.5.7) required by your /Users/ad/Desktop/Website/Gemfile.lock. (Gem::GemNotFoundException)To update to the latest version installed on your system, run bundle update --bundler.To install the missing version, run gem install bundler:2.5.7

When I try bundle update --bundler, it says

You must use Bundler 2 or greater with this lockfile.

My bundler version is Bundler version 1.17.2.

How can I get bundle exec jekyll serve to run?

I tried to install a second version of ruby using homebrew since I read that one cannot update the preinstalled MacOS version of ruby. ruby-install -V gives ruby-install: 0.9.3.However, chruby -h gives zsh: command not found: chruby.

When I use open -e ~/.zshrc, I get

source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
chruby ruby-3.3.3.

Please help...


Viewing all articles
Browse latest Browse all 4634

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>