install node modules only production dependencies via yarn 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