install yarn wndows code example Example 1: install yarn npm install -g yarn Example 2: yarn install windows npm install --global yarn