New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac Os error: Error: Cannot find module '/Users/xxx/.yarn/releases/yarn-1.22.1.js' #8399
Comments
I have the exact same problem. Frustrating to see that due to no solution I will have to - what exactly? Buy a new pc? |
I found a .yarnrc file (can't remember the exact name). Deleted it. And now everything works!!!!! Got the idea because yarn worked in other folders. So If you encounter this: look for a .yarn file in the folder, remove it and hope for the best. |
Yep, Yarn will look for |
Much appreciated @paul-soporan ! ReasonI once upgraded Yarn using Solution
rm .yarnrc
source ~/.zshrc Finally |
You have made my day with this solve 😄 was going nuts trying to understand why |
If rm .yarnrc does not work. make sure to also do rm .yarnrc.yml 😃👍🏻 |
Running MacOs Catalina 10.15.7.
After receiving warnings about yarn being out of date I tried to upgrade it. I have tried several means and yarn no longer works on the machine.
After initially using yarn upgrade
I tried using the curl script:
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --rc
The install terminates with:
which yarn
returns/Users/xxx/.yarn/bin/yarn
Wondering how to get past this and yarn working again?
The text was updated successfully, but these errors were encountered: