yarn install --frozen-lockfile while adding a new package code example Example: yarn frozen lockfile yarn install --frozen-lockfile