1. console:

yarn add @fortawesome/fontawesome-free

2. javascript/packs/application.js:

import "@fortawesome/fontawesome-free/css/all"

3. Check if it works:

Add couple of icons in any .html.erb (view) file:

<i class="far fa-address-book"></i>
<i class="fab fa-github"></i>

That’s it!😊


Relevant links: