Having trouble doing bundle.
My project is using 2.5.0 but every time i do ruby -v
it gives me ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
I am using rbenv and my rbenv local
is 2.5.0
and rbenv global
is 2.5.0
Every time I do Bundle
gives me an error Your Ruby version is 2.6.0, but your Gemfile specified 2.5.0
I have tried gem install bundler
but it doesn't solves the problem.
source 'http://rubygems.org'
ruby '2.5.0'
gem 'rails', '5.0'
and my .ruby-version is also 2.5.0
Run
gem install bundler
or
gem update bundler
which may fix your problem.