problem
The bundler stopped working after raising the version of ruby. (rbenv + .ruby-versions)
$ bundle install
 /Users/yinaura/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems.rb:243:in `bin_path': can't find gem bundler (>= 0) (Gem::GemNotFoundException) from /Users/yinaura/projects/project/bin/bundle:4:in `<main>' 
Solution
The bundler reference directory has changed. The gem could not be found. So re-install bundler.
reinstall bundler
$ gem install bundler
This will create a bin for your ruby version.
.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/exe/bundle
Gem reinstallation
There is no Gem, so reinstall it.
$ bundle install
It moved by this.
environment
- ruby 2.0.0 => 2.4.4
 - Bundler version 1.11.2
 
Original by
Rails | `bin_path': can't find gem bundler に対処する
About
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。