首页 > 解决方案 > 找不到 Gemfile:找不到 gemfile

问题描述

我刚刚安装了 rails,在创建“rails new mySite”并运行“bundle install”后收到以下消息。我知道 gemfile 在同一个文件夹中,我通过输入“gem -v”检查了它。我不知道出了什么问题。下面是我运行“bundle env”时看到的内容。 捆绑环境

标签: ruby-on-railsinstallationbundlegemfilelocate

解决方案


在运行之前,请bundle install确保 Gemfile 具有正确的名称。

1Gemfile而不是gemfile,文件大写并且没有文件类型。

2 确保cd终端位置应与您在同一位置Gemfile


推荐阅读