Closed razzius closed 1 year ago
Hello @razzius
Indeed we should remove the reference to "Yarn 2" and replace it by yarn since we commit yarn to the repository and it gets picked up by yarn automatically.
Regarding the checksum issue, we've seen a few internal developers getting the same error, but we haven't been able to figure out why it's happening. We think it might be a bug in yarn itself. Here is a related issue (possibly not the same) https://github.com/yarnpkg/berry/issues/2399.
What operating system do you use?
The workaround applied in https://github.com/vladimiry/ElectronMail/blob/master/scripts/prepare-webclient/webclients.ts#L258-L278 is setting the following env vars before yarn install
gets executed:
YARN_CHECKSUM_BEHAVIOR: "update",
YARN_ENABLE_IMMUTABLE_INSTALLS: "false",
If the issue is still there, run yarn cache clean --all
and then run installing step again.
I have exactly the same problem, yarn cache clean --all
did not fix the error.
OS Ubuntu 20.04
@cbin, YARN_CHECKSUM_BEHAVIOR=update YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install
.
Building with yarn did work for me today: https://github.com/wekan/wekan/wiki/ProtonMail
This yarn install step is working for me now. Having trouble with captcha, will open a new issue.
I have cloned the repository to the lastest
main
commit 20a9a7a54b5d5da4b8b5dc7d19731a3d7dc5be90 (Jan 13) following the instructions in the readme, butyarn install
gives me an error:I also noticed an inconsistency in the yarn versions; the README requests Yarn version 2:
But the package.json expects yarn 3.1.1:
Am I missing something, or is something currently wrong with the
yarn install
?