getting YN0028 The lockfile would have been modified by this install, which is explicitly forbidden. using yarn berry and heroku

I was able to workaround by setting the env-var YARN_ENABLE_IMMUTABLE_INSTALLS to false, as suggested here. This is likely a bug in Yarn Berry. I’ve reported it here: https://github.com/yarnpkg/berry/issues/2948 UPD: I have created a fresh local clone of the repo from GitHub, ran yarn install in it, and it did produce changes in yarn.lock. Committing those … Read more