installing yarn with npm code example
Example 1: install yarn
npm install -g yarn
Example 2: macos install yarn
brew install yarn
Example 3: yarn latest version
choco install yarn
npm install -g yarn
brew install yarn
choco install yarn