[RUBY] Yarn is not installed

When I try to make an app with rails new

I can install Ruby and Rails, and when I try to make an app I was told that yarn was not installed, so I installed yarn to fix it.

environment Mac Ruby2.6.0 Rails6.1.0

run rails new

This time I will make it on the desktop, so

$ cd Desktop
$Rails new app name

When executed, After a while,

Yarn not installed. 

It seems that the app was not created and an error occurred, and yarn is not installed as described above. Is said.

yarn installation

Reference → Webpacker, yarn-related errors and solutions that may trip during Rails 6 development

$ brew install yarn
$ yarn -v
$ yarn install

It seems that it was installed successfully.

Create the app again and run it on the server

I ran rails new again and this time it worked. And when you run rails server, you will see a nostalgic screen. It's been a year and a half? image.png

Hmm, has the Rails version changed? Did the installation of yarn change the Rails version from 6.1.0 to 6.1.1?

$ rails -v
Rails 6.1.1

After all it has changed. no problem. I don't know. Now, with a little study of Ruby, let's create the contents of the Rails app.

Reference book

Ruby on Rails 6 Super Introduction

Recommended Posts

Yarn is not installed
Eclipse does not start after Java 11 is installed
The public key for jenkins-2.249.1-1.1.noarch.rpm is not installed
DateFormat is not thread safe
"tx" is not bound error
Ruby # {} is not variable expansion
[Rails] fields_for is not displayed
Uncaught ReferenceError: Vue is not defined
Ruby's attr_accessor is not an accessor
that? WebView (swift) is not working.
rails AWS deployment is not reflected
Java Calendar is not a singleton.
Data is not registered in Rails.
Why Java Vector is not used
[Error] Regarding rbenv: ruby 2.5.1 is not installed ot ~ when executing automatic deployment
MySQL is not running stably ... Rails app is not running.
Image is not displayed in production environment
When UITextView is not displayed (Swift, Xcode)
repository The specified gem is bundle installed but not updated to the latest version
The list of installed apps is not displayed in getPackageManager (Android11 ​​/ API level 30)