yarn init -y code example Example 1: install yarn npm install -g yarn Example 2: yarn init project yarn init --yes/-y