force yarn to install code example Example 1: yarn add install all packages in package,json yarn install Example 2: yarn install no optional yarn install --ignore-optional