command to install via yarn code example
Example 1: yarn: command not found
npm install --global yarn
Example 2: ubuntu install yarn
sudo apt install --no-install-recommends yarn
npm install --global yarn
sudo apt install --no-install-recommends yarn