简体   繁体   English

您的Ruby版本是2.5.1,但您的Gemfile指定了2.4.0

[英]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 您的Ruby版本是2.5.1,但您的Gemfile指定了2.4.0

How can i fix this or atleast upgrade Ruby on Gemfile. 如何解决此问题或至少在Gemfile上升级Ruby。

You probably have ruby '2.4.0' line in your Gemfile somewhere. 您的Gemfile某处可能有Gemfile ruby '2.4.0'行。 Change it to ruby '2.5.1' . 将其更改为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' . 您应用的Ruby版本为'2.4.0'而系统上已安装的Ruby版本为'2.5.1'

If your application should be running in '2.4.0' then install then run rvm install 2.4.0 . 如果您的应用程序应在'2.4.0'运行, rvm install 2.4.0然后运行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 . 如果它的好来升级您的应用程序的Ruby版本,改变ruby '2.4.0' ,以ruby '2.5.1'在你Gemfile

Hope this helped. 希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 您的Ruby版本是2.5.1,但您的Gemfile指定了2.6.3 - Your Ruby version is 2.5.1, but your Gemfile specified 2.6.3 您的 Ruby 版本是 2.3.1,但您的 Gemfile 指定了 2.5.1 - Your Ruby version is 2.3.1 but your Gemfile specified 2.5.1 修复rbenv和rails 5.2的“您的Ruby版本为2.4.4,但您的Gemfile指定了2.5.1”的错误 - Fixing 'Your Ruby version is 2.4.4, but your Gemfile specified 2.5.1' error with rbenv and rails 5.2 如何解决“您的 Ruby 版本是 2.5.3,但您的 Gemfile 指定 2.5.1”部署 AWS eb? - How to fix "Your Ruby version is 2.5.3, but your Gemfile specified 2.5.1" deploying the AWS eb? 您的Ruby版本是2.3.1,但是您的Gemfile指定了2.3.1(相同版本) - Your Ruby version is 2.3.1, but your Gemfile specified 2.3.1 (same version) 您的Ruby版本是1.9.3,但是您的Gemfile指定了2.2.2 - Your Ruby version is 1.9.3, but your Gemfile specified 2.2.2 您的 Ruby 版本是 2.2.4,但是您的 Gemfile 指定了 2.3.0? - Your Ruby version is 2.2.4, but your Gemfile specified 2.3.0? 您的Ruby版本是2.2.0,但是您的Gemfile指定了2.1.2 - Your Ruby version is 2.2.0, but your Gemfile specified 2.1.2 如何修复“您的 Ruby 版本为 2.3.3,但您的 Gemfile 指定为 2.5.2” - How to fix 'Your Ruby version is 2.3.3, but your Gemfile specified 2.5.2' 您的Ruby版本是2.1.2,但是您的Gemfile指定了2.1.5 - Your Ruby version is 2.1.2, but your Gemfile specified 2.1.5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM