简体   繁体   中英

Your Ruby version is 2.5.1 but your Gemfile specified 2.4.0

I am getting this error

Your Ruby version is 2.5.1 but your Gemfile specified 2.4.0

How can i fix this or atleast upgrade Ruby on Gemfile.

You probably have ruby '2.4.0' line in your Gemfile somewhere. Change it to ruby '2.5.1' .

Your app's Ruby version is '2.4.0' whereas the installed Ruby version on your system is '2.5.1' .

If your application should be running in '2.4.0' then install then run rvm install 2.4.0 .

If it's okay to upgrade your app's Ruby version, change ruby '2.4.0' to ruby '2.5.1' in you Gemfile .

Hope this helped.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM