yarn install production dependencies only code example
Example 1: yarn add install all packages in package,json
yarn install
Example 2: yarn install no optional
yarn install --ignore-optional
yarn install
yarn install --ignore-optional