npm run yarn code example Example 1: install yarn npm install -g yarn Example 2: install react yarn yarn create react-app my-appCopied