错误在任何来源中都找不到i18n-0.7.0 [英] error Could not find i18n-0.7.0 in any of the sources

查看:71
本文介绍了错误在任何来源中都找不到i18n-0.7.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个星期六(12月27日),我将项目Rails版本从4.1.5版本升级到了4.2.0版本.而且我还将Ruby版本从2.1.2升级到了2.1.5.

This Saturday (27th, December), I upgraded my project Rails version from version 4.1.5 to version 4.2.0. And I also upgraded the Ruby version from 2.1.2 to 2.1.5.

今天,我正在尝试运行Controller生成器:bin/rails g controller Clients index,我意识到该命令不起作用.我收到此错误:

Today, I was trying to run a Controller generator: bin/rails g controller Clients index and I realized that the command is not working. I am getting this error:

Could not find i18n-0.7.0 in any of the sources

我尝试了其他命令,例如:bin/rake db:migratebin/rake和相同的问题.

I tried other commands like: bin/rake db:migrate, bin/rake and the same problem.

但是我可以使用以下服务器来运行服务器:bin/rails s.我也可以浏览网站.

But I can run the server using: bin/rails s. I can navigate through the website too.

推荐答案

我解决了这个问题.

问题是,我升级了Rails版本,但没有升级bin/ folder.

The problem was, I upgraded the Rails version but I did not upgrade the bin/ folder.

为此,我必须运行以下命令,并覆盖所有内容:

So, to do that, I had to run the following command, and override everything:

$ bundle exec rake rails:update:bin

谢谢.

这篇关于错误在任何来源中都找不到i18n-0.7.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆