yarn save as dev dependency code example
Example 1: yarn add install all packages in package,json
yarn install
Example 2: install dev dependency yarn
yarn add nameOfPackage --dev
Example 3: yarn save dev
yarn add <package...> [--dev/-D]
yarn install
yarn add nameOfPackage --dev
yarn add <package...> [--dev/-D]