yarn reinstall all packages code example
Example 1: force yarn to reinstall all packages
yarn install --check-files
Example 2: yarn add install all packages in package,json
yarn install
Example 3: install dev dependency yarn
yarn add nameOfPackage --dev