What to do if you get Could not locate Gemfile or .bundle / directory

I will summarize what I learned and stumbled every day. If you find any mistakes in the description, please let us know! I'm always helped by other people's articles, so I hope it helps.

What kind of error is it

Gemfile not found error.

When it happens

Without moving to the directory of the created application,

bundle exec rake db:create

It happens when you execute a command such as.

approach

Use the cd command to move to the directory of the created app and then execute it.

Recommended Posts

What to do if you get Could not locate Gemfile or .bundle / directory
What to do if you get an error with bundle install by entering gem'bcrypt' in your Gemfile
What to do if you get a java.io.IOException in GlassFish
What to do if you get Could not save master table to file after importing a project in Eclipse
What to do if you get a gcc error in Docker
What to do if you get a DISPLAY error in gym.render ()
What to do if you get angry with OpenSSL with pyenv install
What to do if you install Ubuntu
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
[Rails] What to do if you can't get parameters with form_with
How to make a jar with old Hadoop (hadoop-core-0.20.2-cdh3u6) in Gradle: (What to do if you get Could not expand ZIP ..)
What to do if you get "Changes not staged for commit:" when you git status after git add.
What to do if you get a groovy warning in Thymeleaf Layout
What to do if you get an error during rails db: reset
What to do if you get an uninitialized constant Likes Controller error
What to do if you get an error when you hit Heroku logs
What to do if you get a MiniMagick vulnerability alert on GitHub
[Rails] Could not locate Gemfile with bundle install
What to do if you push incorrect information
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do if you get the error message unrecognized selector send to instance "***"
What to do if you get an error on heroku rake db: migrate
What to do if you get angry if you don't have nokogiri while installing wp2txt
What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
What to do if you accidentally create a model
What to do if you get a wrong number of arguments error in binding.pry
What to do if you can't get the text of an element in Selenium
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
[Rails] What to do if you get an error saying "Could not find a JavaScript runtime." When executing the rails s command on Catalina
What to do if you get the error Couldn't find Item without an ID
What to do if you get a port error when docker-compose up on Mac
[Java] What to do if you get an error in Eclipse saying "Not allowed at source level below 1.X"
What to do if audio is not available on discordrb
What to do if FacesMessage is set but not displayed
# What to do if you accidentally do rails db: migrate: drop
What to do if mysql2 gets a bundle install error
What to do if you can't use the rails command
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
What to do if you installed Ruby with rbenv but the version does not change
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
[Rails] What to do if you can't get an error message with the errors method
What to do if you get a "302" error in your controller unit test code in Rails
What to do if you get an error in Basic authentication during Rails test code
What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"
[Ubuntu 20.04] What to do if the external monitor is not recognized
[Rails] What to do if data is not registered in DB
[Rails] What to do when rails s does not respond or does not stop
[Logback] What to do if unnecessary files do not disappear during rotation
What to do if you forget the root password in CentOS7
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
What to do if you get a "Mysql2 :: Error: Operand should contain 1 column (s)" error in Rails
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do if you get a JNI shared library error when trying to build in Eclipse
What to do if you get an [An HTTP request took too long to complete.] Error in Docker.
What to do if Could not find hoge in any of the sources Run `bundle install` to install missing gems. Appears in the docker container
What to do if JavaMail cannot be used with OpenJDK 11 or later
What to do if changes are not reflected after automatic deployment to EC2
Add gem'rails-i18n','~> 6.0.0' and what to do if bundle install gives an error
What to do if the background image is not applied after deployment
What to do if the prefix c is not bound in JSP
[Composer] [Laravel] What to do if you cannot install due to insufficient memory