how to instal yarn in terminal code example Example 1: install yarn npm install -g yarn Example 2: yarn: command not found npm install --global yarn