-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Docs lack how to uninstall Yarn 2 #2244
Comments
The doc clearly states that the install is project-local. If you derive from it that you need to reinstall your machine to switch back to something else, you missed something. |
Yarn 2 doesn't mess up CRA, PnP highlights the issue in CRA which just happens to work under the old node_modules layout which is suggested to enable in the migration guide for the initial migration, which I'm assuming you skipped https://yarnpkg.com/getting-started/migration The fix for CRA has been sitting there for months, if you want to complain, this is the wrong place facebook/create-react-app#9872 |
But how do you uninstall Yarn? |
Yarn v2+ has caused me so many issues. I just want it gone off of my machine. I've tried |
I have same problem, And after the upgrade, the package installed globally in yarn v1 cannot be uninstalled normally. yarn global Command deleted 🤯🤯🤯 |
Using |
That worked for me. Thanks 👍 |
to anyone having issues with this on Windows, make sure you also delete your " |
None of the 'standard' ways of uninstalling worked for me on windows 10. In the end I delete all files c:\Users<USER>\AppData\Roaming\npm This worked straight away. Im not sure how safe this approach is. |
Came here after looking everywhere about how to uninstall Yarn. Would love better documentation on this. Thanks. I tried using A Stack Overflow thread helped me with what looks to be a global downgrade method: Not sure if this method is correct but it worked for me. |
So you can't remove yarn? any of the replace options do not work for me. |
I needed to run these commands:
I also had to downgrade node to v18.19.1 |
I am also suffering from this issue. |
corepack is a disaster, had to follow Dan503's advice |
I have no idea why developers keep messing up so much with breaking changes with libraries and creating such an amount of issues.
This unfriendly first answer to something so essential is the proof. |
So using NVM I'd to do pretty much all the types of uninstall possible.
In your project, if you still have issues when you run
you need to add the configuration to your package manager, e.g.:
Then run the command Note: That also means that you may have been trying to install globally Finally you can go back to work 😓 |
There are no docs and it's discouraged to rm .yarn in #1733 so what should we do?
This is crucial since Yarn 2 creates anomalies with other stuff, eg CRA but this should not be the focus here. I need to get Yarn 2 from my system or I must re-setup my machine :/
Edit: I changed the title bc the main issue is that there are no docs to get rid of berry; after 30 min of googling, reading tons of SO replies you know how to get there but man, this is not a nice UX and leaves users grumpy. You, we, nobody has time. FWIW and again, Yarn 2 totally messes up CRA if anyone cares.
The text was updated successfully, but these errors were encountered: