If you want to continue using Yarn 1.x, replace --immutable with --frozen-lockfile, which is the equivalent option for that version.