yarn add package.json code example
Example 1: yarn add specific version
// for specific versions
yarn add [email protected]
Example 2: install dev dependency yarn
yarn add nameOfPackage --dev
// for specific versions
yarn add [email protected]
yarn add nameOfPackage --dev