yarn install production package only code example
Example 1: yarn install production only
yarn install --production
# OR
yarn install --production=true
# OR
yarn install --prod
Example 2: yarn install production only
NODE_ENV=production yarn install