即使 bundler 已成功安装,也无法找到 gemfile

Nat*_*lie 1 ruby rubygems bundler

我能够安装这个

~/workspace $ gem install bundler
Successfully installed bundler-1.16.2
1 gem installed
Run Code Online (Sandbox Code Playgroud)

但是,当我进行捆绑安装时,我不断收到

Could not locate Gemfile
Run Code Online (Sandbox Code Playgroud)

我尝试更新和 cd 到我的工作区,但我仍然遇到同样的问题

rad*_*lov 8

你有Gemfile你的工作空间目录?

  • 如果“是”,请确保它在正确的目录中 ->path_to_your_app/Gemfile并且没有扩展名 ->Gemfile.rb不正确。

  • 如果“否”,请先运行bundle init,然后运行bundle install

  • “bundle init”帮助了我 (2认同)