yran install code example Example 1: yarn install npm install -g yarn Example 2: install yarn brew install yarn