Yesterday, yarn worked just fine, but today yarn absolutely refuses to work. Running any kind of yarn command fails.
Internal Error: EPERM: operation not permitted, rename 'C:\Users\NAME\.node\corepack\corepack-4304-ea1e7c84.0eb04' -> 'C:\Users\NAME\.node\corepack\yarn\3.1.1'
I tried following the instructions.
I also noticed that the referenced .node folder was read-only. This is weird because every time I try to use yarn, the corepack-RANDOMSTRING is a new folder.
Removing read-only from the folder and checking if it has been removed says it is read only again.