The command currently used by the Yarn packager is `yarn install --frozen-lockfile --non-interactive`, which isn't compatible with Yarn 2. For reference, the Yarn 2 command would be `yarn install --immutable --immutable-cache`.