yarn version 2 code example Example 1: yarn install npm install -g yarn Example 2: yarn latest version choco install yarn