CouldBeThis / HowToDo

how did I do that last time...?

Home Page:https://couldbethis.github.io/HowToDo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

couldbethis.github.io/H🍅wT🍅D🍅

development

set up environment

Jekyll install instructions

Other Jekyll install instructions | Ubuntu instructions

ruby

 bundle exec jekyll serve    
troubleshooting

problem:

$ bundle exec jekyll serve

Traceback (most recent call last):
	2: from /home/fe/gems/bin/bundle:23:in `<main>'
	1: from /usr/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

solution:

Bundler version 2 introduced a new feature to automatically use the version of Bundler specified in the Gemfile.lock of your project. Thus, if you have an existing Gemfile.lock with a line like this at the bottom

BUNDLED WITH 1.17.3

Bundler will try to run with a Bundler version < 2.0. Since you just have Bundler 2.0.1 (and Rubygems >= 2.7.0) installed, this fails with this rather unhelpful error message.

To fix this, you could

  • remove the lines from your Gemfile.lock and to use bundler 2.x everywhere from now on, or
  • install a bundler 1.x version with gem install bundler -v '< 2.0' to use the appropriate version as specified by your Gemfile.lock.

More information about this can be found on the Bundler blog.

About

how did I do that last time...?

https://couldbethis.github.io/HowToDo/


Languages

Language:HTML 62.0%Language:CSS 34.7%Language:Ruby 3.3%