Skip to main content

Command Palette

Search for a command to run...

how to install yarn for a Ruby on Rails application?

Published
1 min read
how to install yarn for a Ruby on Rails application?
A

I'm a passionate software developer.


Open a terminal


Insert the keys

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

Update the repository

sudo apt update

Install yarn

sudo apt install yarn

Check installation

yarn --version
which yarn
yarn --help

Output


Webpacker installation

 rails webpacker:install

Done


Celebrate

The It Crowd Birthday GIFs | Tenor


Reach me out


Final thoughts

Thank you for reading this article.

If you have any questions, thoughts, suggestions, or corrections, please share them with us.

We appreciate your feedback and look forward to hearing from you.

Feel free to suggest topics for future blog articles. Until next time!

More from this blog

Alexandre Calaça's Blog

265 posts

I'm a passionate software engineer with a deep love for turning complex problems into elegant solutions through code.