how to add font icon in gatsby

Shell
npm i -S @fortawesome/fontawesome-svg-core
npm i -S @fortawesome/free-solid-svg-icons
npm i -S @fortawesome/react-fontawesome

# yarn
yarn add @fortawesome/fontawesome-svg-core
yarn add @fortawesome/free-solid-svg-icons
yarn add @fortawesome/react-fontawesome
Source

Also in Shell: