【问题标题】:ROR Error: project directory contains "gemfile" but shows error "could not locate Gemfile" after executing bundle showROR 错误:项目目录包含“gemfile”,但在执行 bundle show 后显示错误“无法找到 Gemfile”
【发布时间】:2012-07-10 19:29:24
【问题描述】:

我正在执行一个命令rails new sample_app。创建项目sample_app 后,我执行了bundle show 命令,但找不到Gemfile。 我谷歌并找到了stackoverflow解决方案123,他们没有找到gemfile,而在我的情况下我找到了。提出一些解决方案。

【问题讨论】:

  • 尝试捆绑列表。 “show=显示包中特定宝石的源位置”。确保它是 Gemfile。另外,在 app 文件夹中运行它
  • 您安装了哪个版本的捆绑程序?捆绑--版本?

标签: ruby ruby-on-rails-3 ubuntu-12.04


【解决方案1】:

我认为您应该在 sample_app 目录中。为此在命令提示符下运行
cd sample_app
然后执行
bundle install
然后
bundle show

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-17
    • 2019-01-04
    • 2013-09-13
    • 1970-01-01
    • 2015-02-07
    相关资源
    最近更新 更多