Rails new my_first_rails_app

Hi all,

So I’m doing Web Development 101 and I’m doing the part: Your First Rails App

In the guide it says to run the following command:

rails new my_first_rails_app

And that I should get an output similar to this in my terminal:

Bundle complete! 18 Gemfile dependencies, 79 gems now installed.
Use `bundle info <gem name>` to see where a bundled gem is installed.

Instead I got the following output:

Bundle complete! 17 Gemfile dependencies, 75 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
         run  bundle binstubs bundler
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
         run  bundle exec spring binstub --all
* bin/rake: Spring inserted
* bin/rails: Spring inserted
       rails  webpacker:install
Yarn not installed. Please download and install Yarn from https://yarnpkg.com/lang/en/docs/install/

Is this correct? If not what can I do to fix it / what else do I need to install? I thought I’d ask because I really don’t want to break anything by just presuming and going ahead and installing yarn and the likes when it may not be needed.

TIA for any help, advice and support!

You do need yarn with rails 6 now. It was only released last week so we’re still dealing with some of these unknown problems it’s caused.


Shall I do sudo apt-get install yarn then?

Also, do I need to add/update/install anything else from the output I received?

Hello! I have the same issue.

Should we install Yarn from the Terminal? If so, how?

Thank you so much for any help you can provide, I’m stuck at this point.

If you’re using ubuntu then you can follow the instructions here

Any other OS then just select your OS from the dropdown on that page.


OK, thank you for your reply.

Just to clarify, one of the things stressed by TOP in their article was NOT to run SUDO command unless stressed to as this will cause issues later on. I take it that installing yarn it’s fine to run the sudo command listed in the article you linked to?

Also, I think in my output from my first post it wasn’t the only thing that was missing, what should I do about the other missing requirements or was the output fine apart from the yarn thing?

You can use sudo to install yarn.

I would start with that and then see if any errors remain.

1 Like

Never mind fixed it now.

Ended up installing Yarn the way you suggested it.

Then had to update it, since the version was old.

Thank you everyone.

1 Like

You need to install Yarn. You can visit link for more info: