[RUBY] rails new app is not created with app name

Corresponding part

Rails Tutorial Chapter 3 $ rails _6.0.3_ new sample_app When I run, an error occurs and the app is not created.

Expected behavior

The $ rails _6.0.3_ new sample_app command works fine and the app is created.

What I worked on

$ rails _6.0.3_ new sample_app

Yarn not installed. Please download and install Yarn from https://yarnpkg.com/lang/en/docs/install/

It seems that Yarn is not installed. I was asked to install Yarn. So, install Yarn with the Homebrew brew command.

 $ brew install yarn

 bash: brew: command not found

Next, I was told that there is no brew command. I think that there is no Homebrew, so I will install Homebrew.

 $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

 Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.

I was told that my PATH wasn't working. So let's go through the PATH.

$ echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >>  ~/.bashrc
source ~/.bashrc

Homebrew is now installed and Yarn is also installed.

$ rails _6.0.3_ new sample_app

The app has been created properly! !!


In order to create an app with the $ rails new app name command, you need to install Yarn. You can also install Yarn with npm, but you can install it with Homebrew.



Recommended Posts

rails new app is not created with app name
What to do if the app is not created with the latest Rails version installed when rails new
[Rails6] Create a new app with Rails [Beginner]
MySQL is not running stably ... Rails app is not running.
[Rails 5] Create a new app with Rails [Beginner]
Downgrade an existing app created with rails 5.2.4 to 5.1.6
[Rails] New app creation --Notes--
[Rails] fields_for is not displayed
[Rails] Creating a new project with rails new
Create a new app in Rails
rails AWS deployment is not reflected
Track Rails app errors with Sentry
Data is not registered in Rails.
[rails] Edit of view page created by devise is not reflected
[Rails] Video does not play with video_tag
[Rails] Annotate is not executed when migrating
How to change app name in rails
[Must-see for beginners] rails_12factor is not required to publish Rails app to Heroku
[AWS] Publish rails app with nginx + puma
The story of making an electronic New Year's card app with Vue.js + Rails
[Rails] Could not locate Gemfile with bundle install
[Rails] rails new to create a database with PostgreSQL
Publish the app made with ruby on rails
Hot deploy with STS (Eclipse) is not possible
java.util.Arrays.asList () is not a replacement for new ArrayList <> ()
Rails development environment created with VSCode and devcontainer
How to push an app developed with Rails to Github
Limit files created with the rails g controller command
Bundle install with docker + rails6 does not reflect gem
[Heroku] Associate AWS S3 with the deployed Rails app
Rails must be exist error (@save is not executed)
Call your own class created under lib with Rails
[Error] The app is not displayed in the production environment
How to get started with creating a Rails app
Created RSS / Atom format sitemap with Ruby on Rails
When the server does not start with rails s
[Rails] Record when the event did not fire when the javascript file name is the same as the controller