[Ruby] rbenv bundle 問題
最近改用 rbenv, 在專案下 bundle 時遇到以下問題
rbenv: bundle: command not found
The `bundle' command exists in these Ruby versions:
  2.1.2
  2.1.5
  2.1.8
  2.2.1
  2.2.8
  2.3.3
  2.5.3
解決方法:
- 看目前 Gemfile.lock 裡面 bundle 的版本
 
$ cat Gemfile.lock | grep -A 1 "BUNDLED WITH"
- 安裝與 Gemfile.lock 相同的版本 bundle
 
$ gem install bundler -v '這裡填入步驟1印出來的版本'
e.g.
$ gem install bundler -v '1.16.6'

- 重新執行 
bundle install, 即可正常運行 
