https://github.com/yarnpkg/berry/issues/5831
ls ~/package.json
rm -rf ~/package.json
rm -rf ~/package-lock.json
Someone in the discord suggested I may have a package.json in my users folder. After deleting that, I was able to set my version to berry but it also broke yarn. I couldn’t run any yarn commands as it would just error out saying it couldnt find 1.22.19.
用户文件夹中可能有一个 package.json 会有影响我们只需要清理掉即可。