yarn install dependencies code example
Example 1: install yarn
npm install -g yarn
Example 2: add dev dependency yarn
yarn add -D package
//or
yarn add --dev package
Example 3: linux install yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
Example 4: yarn add install all packages in package,json
yarn install
Example 5: install dev dependency yarn
yarn add nameOfPackage --dev
Example 6: yarn add to dev dependencies
yarn add --dev <PACKAGE_NAME>