ruby-on-rails – 新手:’rake -T’时出现错误信息
发布时间:2020-12-16 19:05:57 所属栏目:百科 来源:网络整理
导读:我正在为我的项目使用 Ruby Enterprise Edition.当我通过运行命令rake -T检查我所有的rake任务时,我收到以下错误消息: You have already activated rake 0.9.2.2,but your Gemfile requires rake 0.9.2. Using bundle exec may solve this. 错误消息暗示我
我正在为我的项目使用
Ruby Enterprise Edition.当我通过运行命令rake -T检查我所有的rake任务时,我收到以下错误消息:
You have already activated rake 0.9.2.2,but your Gemfile requires rake 0.9.2. Using bundle exec may solve this. 错误消息暗示我可以使用bundle exec来解决问题,但我不确定如何?那么,如何摆脱这个错误信息? – – – – – – – – – – – – – – – 更多 – – – – – – – – – – ——– 我更喜欢更新我的Gemfile而不是运行bundle exec rake -T.但是当我打开我的项目Gemfile时,我没有在我的Gemfile中看到rake 0.9.2,为什么错误消息会抱怨我有它?我可以在哪里定义rake 0.9.2 ?? 解决方法
运行bundle exec rake -T,这可以确保Gemfile中指定的rake版本正在运行,而不是另一个版本.
或者,更新您的Gemfile. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |