yarn add de code example
Example 1: install dev dependency yarn
yarn add nameOfPackage --dev
Example 2: yarn add --save-exact
yarn add <package...> [--exact/-E]
yarn add nameOfPackage --dev
yarn add <package...> [--exact/-E]